aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/win32/win32-main.cpp
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-02 06:44:42 +0000
committerAlejandro Marzini2010-07-02 06:44:42 +0000
commitf9c3a4547cbf1b1942402d618fa403a7fb1cb656 (patch)
tree63bb999ef23998b17aea9f5bc9712bc2a8f9bfbf /backends/platform/sdl/win32/win32-main.cpp
parent055fc3282f73bd9aa64cec2661258d3baf5ec66e (diff)
downloadscummvm-rg350-f9c3a4547cbf1b1942402d618fa403a7fb1cb656.tar.gz
scummvm-rg350-f9c3a4547cbf1b1942402d618fa403a7fb1cb656.tar.bz2
scummvm-rg350-f9c3a4547cbf1b1942402d618fa403a7fb1cb656.zip
Cleanup and documentation.
svn-id: r50589
Diffstat (limited to 'backends/platform/sdl/win32/win32-main.cpp')
-rw-r--r--backends/platform/sdl/win32/win32-main.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/backends/platform/sdl/win32/win32-main.cpp b/backends/platform/sdl/win32/win32-main.cpp
index ffabeffc9d..25f208ddac 100644
--- a/backends/platform/sdl/win32/win32-main.cpp
+++ b/backends/platform/sdl/win32/win32-main.cpp
@@ -26,14 +26,12 @@
#ifdef WIN32
// Fix for bug #2895217 "MSVC compilation broken with r47595":
-// We need to keep this on top of the "common/scummsys.h" include,
+// We need to keep this on top of the "common/scummsys.h"(base/main.h) include,
// otherwise we will get errors about the windows headers redefining
// "ARRAYSIZE" for example.
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-// winnt.h defines ARRAYSIZE, but we want our own one...
-#undef ARRAYSIZE
-
-#include "common/scummsys.h"
+#undef ARRAYSIZE // winnt.h defines ARRAYSIZE, but we want our own one...
#include "backends/platform/sdl/win32/win32.h"
#include "backends/plugins/sdl/sdl-provider.h"
@@ -45,7 +43,6 @@ int __stdcall WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/, LPSTR /*lpC
}
int main(int argc, char *argv[]) {
-
// Create our OSystem instance
g_system = new OSystem_Win32();
assert(g_system);