From e83979439f83f378fcb41fc6ae6a24efbc4971be Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 14 Feb 2003 06:29:40 +0000 Subject: [PATCH] pull in SDL headers in one place, handle X silliness --- stepmania/src/SDL_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/SDL_utils.h b/stepmania/src/SDL_utils.h index 021e86255b..257f1eda7b 100644 --- a/stepmania/src/SDL_utils.h +++ b/stepmania/src/SDL_utils.h @@ -1,7 +1,13 @@ #ifndef SM_SDL_UTILS #define SM_SDL_UTILS 1 +/* Hack to prevent X includes from messing with our namespace: */ +#define Font X11___Font +#define Screen X11___Screen #include "SDL.h" +#include "SDL_syswm.h" // for SDL_SysWMinfo +#undef Font +#undef Screen Uint32 decodepixel(const Uint8 *p, int bpp); void encodepixel(Uint8 *p, int bpp, Uint32 pixel);