aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-08-05 00:21:46 +0000
committerTravis Howell2008-08-05 00:21:46 +0000
commit73185331893cdddd93d9c663456f8792a6ac6eca (patch)
tree6a05e7cd790bca30bc461713285fce09cd91217c
parent5dd834488e564be1078679648ab832985b4406c8 (diff)
downloadscummvm-rg350-73185331893cdddd93d9c663456f8792a6ac6eca.tar.gz
scummvm-rg350-73185331893cdddd93d9c663456f8792a6ac6eca.tar.bz2
scummvm-rg350-73185331893cdddd93d9c663456f8792a6ac6eca.zip
Fix win32 compile.
svn-id: r33626
-rw-r--r--backends/platform/sdl/sdl.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 75bac0f536..5c3b87309d 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -23,14 +23,18 @@
*
*/
+#if defined(WIN32)
+#include <windows.h>
+#if defined(ARRAYSIZE)
+// winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h
+#undef ARRAYSIZE
+#endif
+#endif
+
#include "backends/platform/sdl/sdl.h"
#include "common/config-manager.h"
#include "common/events.h"
#include "common/file.h"
-#if defined(WIN32) && defined(ARRAYSIZE)
-// winnt.h defines ARRAYSIZE, but we want our own one... - this is needed before including util.h
-#undef ARRAYSIZE
-#endif
#include "common/util.h"
#include "backends/saves/default/default-saves.h"