diff options
author | Johannes Schickel | 2010-11-28 15:11:27 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-11-28 15:11:27 +0000 |
commit | 11b254a93833f2e6537f325432748277247f3641 (patch) | |
tree | 2691599265fb40d68742a597a082fccf0a968f88 | |
parent | 27016b303fb094e7c6892f523619831f3add9b0f (diff) | |
download | scummvm-rg350-11b254a93833f2e6537f325432748277247f3641.tar.gz scummvm-rg350-11b254a93833f2e6537f325432748277247f3641.tar.bz2 scummvm-rg350-11b254a93833f2e6537f325432748277247f3641.zip |
SDL: Fix compilation on Windows too.
svn-id: r54524
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index b2c69dd782..1fb600b1de 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -26,6 +26,12 @@ // Disable symbol overrides so that we can use system headers. #define FORBIDDEN_SYMBOL_ALLOW_ALL +#ifdef WIN32 +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#undef ARRAYSIZE // winnt.h defines ARRAYSIZE, but we want our own one... +#endif + #include "backends/platform/sdl/sdl.h" #include "common/config-manager.h" #include "common/EventRecorder.h" |