Use correct include pathes to SDL under Windows

This commit is contained in:
Yamagi Burmeister 2012-06-04 10:02:01 +02:00
parent 93f518e7b5
commit a4609fc42b
3 changed files with 13 additions and 2 deletions

View file

@ -162,7 +162,7 @@ endif
# Extra LDFLAGS for SDL
ifeq ($(OSTYPE), Windows)
SDLLDFLAGS := $(shell sdl-config.exe --libs)
SDLLDFLAGS := -lSDL
else
SDLLDFLAGS := $(shell sdl-config --libs)
endif
@ -234,7 +234,7 @@ endif
ifeq ($(WITH_OGG),yes)
release/quake2.exe : CFLAGS += -DOGG
release/quake2.exe : LDFLAGS += -lvorbis -lvorbisfile -logg
release/quake2.exe : LDFLAGS += -lvorbisfile -lvorbis -logg
endif
ifeq ($(WITH_OPENAL),yes)

View file

@ -28,7 +28,13 @@
#ifdef CDA
#include <stdio.h>
#ifdef _WIN32
#include "SDL/SDL.h"
#else
#include "SDL.h"
#endif
#include "../client/header/client.h"
static qboolean cdValid = false;

View file

@ -30,7 +30,12 @@
* =======================================================================
*/
#ifdef _WIN32
#include <SDL/SDL.h>
#else
#include <SDL.h>
#endif
#include "../client/header/client.h"
#include "../client/sound/header/local.h"