pull in SDL headers in one place, handle X silliness

This commit is contained in:
Glenn Maynard
2003-02-14 06:29:40 +00:00
parent 279b884cbb
commit e83979439f
+6
View File
@@ -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);