]> git.llucax.com Git - software/druntime.git/blobdiff - src/compiler/dmd/cover.d
fix support for file/line
[software/druntime.git] / src / compiler / dmd / cover.d
index fd331615aeebb4ac2eea80411849728da2e7867b..ca8381f3f7839c4714f075afdda421d2d808f7e2 100644 (file)
  * Authors:   Walter Bright, Sean Kelly
  */
 
-module rt. cover;
+module rt.cover;
 
 private
 {
     version( Windows )
         import sys.windows.windows;
     else version( Posix )
+    {
+        import stdc.posix.fcntl;
         import stdc.posix.unistd;
+    }
     import bitmanip;
     import stdc.stdio;
     import util.utf;
@@ -222,7 +225,7 @@ bool readFile( char[] name, inout char[] buf )
 {
     version( Windows )
     {
-        wchar*  wnamez  = toUTF16z( name );
+        auto    wnamez  = toUTF16z( name );
         HANDLE  file    = CreateFileW( wnamez,
                                        GENERIC_READ,
                                        FILE_SHARE_READ,