diff options
Diffstat (limited to 'src/winmain.cpp')
| -rw-r--r-- | src/winmain.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/winmain.cpp b/src/winmain.cpp index 752ab8e6b..5120e44e0 100644 --- a/src/winmain.cpp +++ b/src/winmain.cpp @@ -11,7 +11,12 @@ #include <stdio.h> #include <io.h> #include <conio.h> -#define _WIN32_WINNT 0x0501 + +#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0501) +# undef _WIN32_WINNT +# define _WIN32_WINNT 0x0501 +#endif + #include <windows.h> extern int main (int argc, char **argv); @@ -25,10 +30,10 @@ extern int main (int argc, char **argv); #endif int _stdcall -WinMain (struct HINSTANCE__ *hInstance, - struct HINSTANCE__ *hPrevInstance, - char *lpszCmdLine, - int nCmdShow) +WinMain (struct HINSTANCE__ */*hInstance*/, + struct HINSTANCE__ */*hPrevInstance*/, + char */*lpszCmdLine*/, + int /*nCmdShow*/) { if (fileno (stdout) != -1 && _get_osfhandle (fileno (stdout)) != -1) |
