Ticket #4700: ScummVM-MSVC-r47975.patch
File ScummVM-MSVC-r47975.patch, 889 bytes (added by , 14 years ago) |
---|
-
backends/platform/sdl/main.cpp
23 23 * 24 24 */ 25 25 26 #include "common/scummsys.h" 26 #if defined(WIN32) 27 #include <windows.h> 28 // winnt.h defines ARRAYSIZE, but we want our own one... 29 #undef ARRAYSIZE 30 #endif 27 31 28 32 // Several SDL based ports use a custom main, and hence do not want to compile 29 33 // of this file. The following "#if" ensures that. … … 35 39 #include "base/main.h" 36 40 37 41 #if defined(WIN32) 38 39 #include <windows.h>40 // winnt.h defines ARRAYSIZE, but we want our own one...41 #undef ARRAYSIZE42 43 42 int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpCmdLine*/, int /*iShowCmd*/) { 44 43 SDL_SetModuleHandle(GetModuleHandle(NULL)); 45 44 return main(__argc, __argv);