diff options
author | tron <tron@openttd.org> | 2005-07-25 07:16:10 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-25 07:16:10 +0000 |
commit | 201990b5d9d28abb67314076f577190f7a39f3ae (patch) | |
tree | a82d96125e84eafe4fb9321c49e6f8a880e8c141 /sound | |
parent | cb3c325e5f8bcb09f390ef7a1af0ef0442fe9462 (diff) | |
download | openttd-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')
-rw-r--r-- | sound/null_s.c | 6 | ||||
-rw-r--r-- | sound/null_s.h | 2 | ||||
-rw-r--r-- | sound/sdl_s.c | 17 | ||||
-rw-r--r-- | sound/sdl_s.h | 2 | ||||
-rw-r--r-- | sound/win32_s.c | 13 | ||||
-rw-r--r-- | sound/win32_s.h | 2 |
6 files changed, 24 insertions, 18 deletions
diff --git a/sound/null_s.c b/sound/null_s.c index 00f8c4039..f68c4b13a 100644 --- a/sound/null_s.c +++ b/sound/null_s.c @@ -1,8 +1,8 @@ /* $Id$ */ -#include "stdafx.h" -#include "openttd.h" -#include "sound/null_s.h" +#include "../stdafx.h" +#include "../openttd.h" +#include "null_s.h" static const char *NullSoundStart(const char * const *parm) { return NULL; } static void NullSoundStop(void) {} diff --git a/sound/null_s.h b/sound/null_s.h index 5f9a90a92..6ccd19aed 100644 --- a/sound/null_s.h +++ b/sound/null_s.h @@ -3,7 +3,7 @@ #ifndef SOUND_NULL_H #define SOUND_NULL_H -#include "hal.h" +#include "../hal.h" extern const HalSoundDriver _null_sound_driver; 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 diff --git a/sound/sdl_s.h b/sound/sdl_s.h index 5808f68de..6fc2b6dc0 100644 --- a/sound/sdl_s.h +++ b/sound/sdl_s.h @@ -3,7 +3,7 @@ #ifndef SOUND_SDL_H #define SOUND_SDL_H -#include "hal.h" +#include "../hal.h" extern const HalSoundDriver _sdl_sound_driver; diff --git a/sound/win32_s.c b/sound/win32_s.c index 736c00d9c..b32c2e746 100644 --- a/sound/win32_s.c +++ b/sound/win32_s.c @@ -1,12 +1,13 @@ /* $Id$ */ -#include "stdafx.h" -#include "openttd.h" -#include "driver.h" -#include "functions.h" -#include "mixer.h" -#include "sound/win32_s.h" +#include "../stdafx.h" +#include "../openttd.h" +#include "../driver.h" +#include "../functions.h" +#include "../mixer.h" +#include "win32_s.h" #include <windows.h> +#include <mmsystem.h> static HWAVEOUT _waveout; static WAVEHDR _wave_hdr[2]; diff --git a/sound/win32_s.h b/sound/win32_s.h index ff1cb1158..65c6a957d 100644 --- a/sound/win32_s.h +++ b/sound/win32_s.h @@ -3,7 +3,7 @@ #ifndef SOUND_WIN32_H #define SOUND_WIN32_H -#include "hal.h" +#include "../hal.h" extern const HalSoundDriver _win32_sound_driver; |