diff options
author | Kirben | 2015-10-08 10:46:05 +1100 |
---|---|---|
committer | Kirben | 2015-10-08 10:46:05 +1100 |
commit | 7e81052150c041114491825720b5d5e93ad4ad50 (patch) | |
tree | fee8d9224e6078f0f1cbee3663c7d27f7218ad60 /backends/platform/sdl/win32/win32-main.cpp | |
parent | dd297c302b3857a81af4b6662e903c6d58c17b0b (diff) | |
download | scummvm-rg350-7e81052150c041114491825720b5d5e93ad4ad50.tar.gz scummvm-rg350-7e81052150c041114491825720b5d5e93ad4ad50.tar.bz2 scummvm-rg350-7e81052150c041114491825720b5d5e93ad4ad50.zip |
WIN: Add hack for command line display in Windows versions built with MinGW.
Diffstat (limited to 'backends/platform/sdl/win32/win32-main.cpp')
-rw-r--r-- | backends/platform/sdl/win32/win32-main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/platform/sdl/win32/win32-main.cpp b/backends/platform/sdl/win32/win32-main.cpp index c6c15c00e8..428e1a539c 100644 --- a/backends/platform/sdl/win32/win32-main.cpp +++ b/backends/platform/sdl/win32/win32-main.cpp @@ -43,7 +43,12 @@ int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpC #if !SDL_VERSION_ATLEAST(2, 0, 0) 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 + return main(_argc, _argv); +#endif } int main(int argc, char *argv[]) { |