64bit Windows always supports the W functions, so no need to check for them.

This commit is contained in:
Richard Webb 2012-01-21 22:20:13 +00:00
parent ee9c6b084c
commit a1d83cdd93

View file

@ -19,14 +19,19 @@ module std.__fileinit;
version (Windows)
{
version (Win32)
{
private import std.c.windows.windows;
shared bool useWfuncs = true;
private import std.c.windows.windows;
shared bool useWfuncs = true;
shared static this()
{
shared static this()
{
// Win 95, 98, ME do not implement the W functions
useWfuncs = (GetVersion() < 0x80000000);
}
}
}
else version (Win64)
{
enum useWfuncs = true;
}
}