aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2010-06-26 21:55:52 +0000
committerJohannes Schickel2010-06-26 21:55:52 +0000
commit09b4f7cbed4f258a00822f2b135df475f6e1b398 (patch)
tree54344ab33bd359442a8c29ea93bee237b825c8b0 /backends/platform
parentaf755b0b3d732a0976b4c008b849ca907421d6eb (diff)
downloadscummvm-rg350-09b4f7cbed4f258a00822f2b135df475f6e1b398.tar.gz
scummvm-rg350-09b4f7cbed4f258a00822f2b135df475f6e1b398.tar.bz2
scummvm-rg350-09b4f7cbed4f258a00822f2b135df475f6e1b398.zip
Define WIN32_LEAN_AND_MEAN before including windows.h.
This will cause our code to include less functionality, but might on the other hand fasten up the compilation. svn-id: r50346
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/main.cpp1
-rw-r--r--backends/platform/sdl/sdl.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/sdl/main.cpp b/backends/platform/sdl/main.cpp
index 13e614a4a2..52bbb59165 100644
--- a/backends/platform/sdl/main.cpp
+++ b/backends/platform/sdl/main.cpp
@@ -28,6 +28,7 @@
// otherwise we will get errors about the windows headers redefining
// "ARRAYSIZE" for example.
#if defined(WIN32) && !defined(__SYMBIAN32__)
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
// winnt.h defines ARRAYSIZE, but we want our own one...
#undef ARRAYSIZE
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index f8ae824acf..18c529092d 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -24,6 +24,7 @@
*/
#if defined(WIN32)
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
// winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h
#undef ARRAYSIZE