mirror of
https://github.com/dlang/phobos.git
synced 2025-05-09 04:27:23 +03:00
64bit Windows always supports the W functions, so no need to check for them.
This commit is contained in:
parent
ee9c6b084c
commit
a1d83cdd93
1 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue