aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/win32
diff options
context:
space:
mode:
authorKirben2015-10-08 11:02:40 +1100
committerKirben2015-10-08 11:02:40 +1100
commit8f9245cfce202b5bdd6bf2f044f2823574f5ea1e (patch)
treec84ca99ef632bd01b3b2081703af72bd42b655a9 /backends/platform/sdl/win32
parent7e81052150c041114491825720b5d5e93ad4ad50 (diff)
downloadscummvm-rg350-8f9245cfce202b5bdd6bf2f044f2823574f5ea1e.tar.gz
scummvm-rg350-8f9245cfce202b5bdd6bf2f044f2823574f5ea1e.tar.bz2
scummvm-rg350-8f9245cfce202b5bdd6bf2f044f2823574f5ea1e.zip
WIN: Fix mingw64 compilation, by limiting last hack.
Diffstat (limited to 'backends/platform/sdl/win32')
-rw-r--r--backends/platform/sdl/win32/win32-main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/sdl/win32/win32-main.cpp b/backends/platform/sdl/win32/win32-main.cpp
index 428e1a539c..c6339f0c8c 100644
--- a/backends/platform/sdl/win32/win32-main.cpp
+++ b/backends/platform/sdl/win32/win32-main.cpp
@@ -44,10 +44,10 @@ int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpC
SDL_SetModuleHandle(GetModuleHandle(NULL));
#endif
// HACK: __argc, __argv are broken and return zero when using mingwrt 4.0+ on MinGW
-#if defined(_MSC_VER)
- return main(__argc, __argv);
-#else
+#if defined(__GNUC__) && defined(__MINGW32__) && !defined(__MINGW64__)
return main(_argc, _argv);
+#else
+ return main(__argc, __argv);
#endif
}