Use correct SDL include path under Windows and hide X11 stuff

This commit is contained in:
Yamagi Burmeister 2012-06-04 11:52:07 +02:00
parent e652f32a64
commit b8792c7fc0
2 changed files with 12 additions and 0 deletions

View file

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

View file

@ -25,7 +25,12 @@
* ======================================================================= * =======================================================================
*/ */
#ifdef _WIN32
#include <SDL/SDL.h>
#else
#include <SDL.h> #include <SDL.h>
#endif
#include <GL/gl.h> #include <GL/gl.h>
#include "../refresh/header/local.h" #include "../refresh/header/local.h"
@ -35,10 +40,12 @@
#include "icon/q2icon.xbm" #include "icon/q2icon.xbm"
/* X.org stuff */ /* X.org stuff */
#ifdef X11GAMMA
#include <X11/Xos.h> #include <X11/Xos.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/extensions/xf86vmode.h> #include <X11/extensions/xf86vmode.h>
#endif
SDL_Surface *surface; SDL_Surface *surface;
glwstate_t glw_state; glwstate_t glw_state;