Ticket #4700: ScummVM-MSVC-r47975.patch

File ScummVM-MSVC-r47975.patch, 889 bytes (added by Templier, 14 years ago)

Patch (against trunk)

  • backends/platform/sdl/main.cpp

     
    2323 *
    2424 */
    2525
    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
    2731
    2832// Several SDL based ports use a custom main, and hence do not want to compile
    2933// of this file. The following "#if" ensures that.
     
    3539#include "base/main.h"
    3640
    3741#if defined(WIN32)
    38 
    39 #include <windows.h>
    40 // winnt.h defines ARRAYSIZE, but we want our own one...
    41 #undef ARRAYSIZE
    42 
    4342int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/,  LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
    4443        SDL_SetModuleHandle(GetModuleHandle(NULL));
    4544        return main(__argc, __argv);