X-Git-Url: https://git.llucax.com/software/druntime.git/blobdiff_plain/5a07183e26b7ca151959629420a83f59af5339f3..471a1a23753606871f4d85eb951f615e5310792e:/src/compiler/dmd/cover.d?ds=sidebyside diff --git a/src/compiler/dmd/cover.d b/src/compiler/dmd/cover.d index fd33161..ca8381f 100644 --- a/src/compiler/dmd/cover.d +++ b/src/compiler/dmd/cover.d @@ -12,14 +12,17 @@ * 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,