diff --git a/std/__fileinit.d b/std/__fileinit.d index bb0867e2b..5b7324737 100644 --- a/std/__fileinit.d +++ b/std/__fileinit.d @@ -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() -{ - // Win 95, 98, ME do not implement the W functions - useWfuncs = (GetVersion() < 0x80000000); -} - + shared static this() + { + // Win 95, 98, ME do not implement the W functions + useWfuncs = (GetVersion() < 0x80000000); + } + } + else version (Win64) + { + enum useWfuncs = true; + } }