* 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;
{
version( Windows )
{
- wchar* wnamez = toUTF16z( name );
+ auto wnamez = toUTF16z( name );
HANDLE file = CreateFileW( wnamez,
GENERIC_READ,
FILE_SHARE_READ,