diff options
author | Johannes Schickel | 2010-06-26 21:55:52 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-06-26 21:55:52 +0000 |
commit | 09b4f7cbed4f258a00822f2b135df475f6e1b398 (patch) | |
tree | 54344ab33bd359442a8c29ea93bee237b825c8b0 | |
parent | af755b0b3d732a0976b4c008b849ca907421d6eb (diff) | |
download | scummvm-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
-rw-r--r-- | backends/midi/windows.cpp | 1 | ||||
-rw-r--r-- | backends/platform/sdl/main.cpp | 1 | ||||
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 1 | ||||
-rw-r--r-- | backends/plugins/win32/win32-provider.cpp | 1 | ||||
-rw-r--r-- | engines/engine.cpp | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/backends/midi/windows.cpp b/backends/midi/windows.cpp index 08587a6b80..da44c40978 100644 --- a/backends/midi/windows.cpp +++ b/backends/midi/windows.cpp @@ -24,6 +24,7 @@ #if defined(WIN32) && !defined(_WIN32_WCE) +#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/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 diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp index a39bdfe76a..65586249e8 100644 --- a/backends/plugins/win32/win32-provider.cpp +++ b/backends/plugins/win32/win32-provider.cpp @@ -30,6 +30,7 @@ #include "common/debug.h" #include "common/fs.h" +#define WIN32_LEAN_AND_MEAN #include <windows.h> diff --git a/engines/engine.cpp b/engines/engine.cpp index 0f42cd493d..84fc0bbe4e 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -23,6 +23,7 @@ */ #if defined(WIN32) && !defined(_WIN32_WCE) && !defined(__SYMBIAN32__) +#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <direct.h> // winnt.h defines ARRAYSIZE, but we want our own one... |