summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-24 10:39:12 +0000
committertron <tron@openttd.org>2005-07-24 10:39:12 +0000
commit384b284846584cbfd5f696009236b5bae073ba17 (patch)
tree61fb69fd5a8be12854a9e6e70261de57f335d7ea
parent475d7fc0aec274a1d16893ecc248e40b61ea609f (diff)
downloadopenttd-384b284846584cbfd5f696009236b5bae073ba17.tar.xz
(svn r2699) Hopefully fix the compilation on Windows when SDL is not present
-rw-r--r--win32.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 25310a405..e5403abde 100644
--- a/win32.c
+++ b/win32.c
@@ -23,14 +23,17 @@
#include "music/win32_m.h"
#include "sound/null_s.h"
-#include "sound/sdl_s.h"
#include "sound/win32_s.h"
#include "video/dedicated_v.h"
#include "video/null_v.h"
-#include "video/sdl_v.h"
#include "video/win32_v.h"
+#ifdef WITH_SDL
+ #include "sound/sdl_s.h"
+ #include "video/sdl_v.h"
+#endif
+
static bool _has_console;
#if defined(__MINGW32__) || defined(__CYGWIN__)