summaryrefslogtreecommitdiff
path: root/sound/sdl_s.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-25 07:16:10 +0000
committertron <tron@openttd.org>2005-07-25 07:16:10 +0000
commit201990b5d9d28abb67314076f577190f7a39f3ae (patch)
treea82d96125e84eafe4fb9321c49e6f8a880e8c141 /sound/sdl_s.c
parentcb3c325e5f8bcb09f390ef7a1af0ef0442fe9462 (diff)
downloadopenttd-201990b5d9d28abb67314076f577190f7a39f3ae.tar.xz
(svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build
Diffstat (limited to 'sound/sdl_s.c')
-rw-r--r--sound/sdl_s.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/sound/sdl_s.c b/sound/sdl_s.c
index c9cb2b395..762be59b6 100644
--- a/sound/sdl_s.c
+++ b/sound/sdl_s.c
@@ -1,11 +1,14 @@
/* $Id$ */
-#include "stdafx.h"
-#include "openttd.h"
-#include "driver.h"
-#include "mixer.h"
-#include "sdl.h"
-#include "sound/sdl_s.h"
+#include "../stdafx.h"
+
+#ifdef WITH_SDL
+
+#include "../openttd.h"
+#include "../driver.h"
+#include "../mixer.h"
+#include "../sdl.h"
+#include "sdl_s.h"
#include <SDL.h>
static void CDECL fill_sound_buffer(void *userdata, Uint8 *stream, int len)
@@ -40,3 +43,5 @@ const HalSoundDriver _sdl_sound_driver = {
SdlSoundStart,
SdlSoundStop,
};
+
+#endif