(svn r2704) Remove . from include path again, too much trouble. Also add some #ifdefs and #includes for the Windows build

This commit is contained in:
tron
2005-07-25 07:16:10 +00:00
parent cb3c325e5f
commit 201990b5d9
30 changed files with 108 additions and 96 deletions

View File

@@ -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) {}

View File

@@ -3,7 +3,7 @@
#ifndef SOUND_NULL_H
#define SOUND_NULL_H
#include "hal.h"
#include "../hal.h"
extern const HalSoundDriver _null_sound_driver;

View File

@@ -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

View File

@@ -3,7 +3,7 @@
#ifndef SOUND_SDL_H
#define SOUND_SDL_H
#include "hal.h"
#include "../hal.h"
extern const HalSoundDriver _sdl_sound_driver;

View File

@@ -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];

View File

@@ -3,7 +3,7 @@
#ifndef SOUND_WIN32_H
#define SOUND_WIN32_H
#include "hal.h"
#include "../hal.h"
extern const HalSoundDriver _win32_sound_driver;