Schism Tracker

view include/sdlmain.h @ 2729:d03801319cb3

make opengl headers optional (for embedded systems) - thanks stuckie
author Storlek <storlek@rigelseven.com>
date Fri Jun 18 21:03:04 2010 -0400 (23 months ago)
parents 88560d1080b7
children
line source
1 #ifndef __sdlmain_header
2 # define __sdlmain_header
4 /* Hack to get the build to shut up about SDL trampling on names. */
5 # define index qwwqwqqw
6 # define access ddsdsd
8 /* just a fancy way to get SDL headers */
10 # ifdef USE_X11
11 # undef DISABLE_X11
12 # ifndef __unix__
13 # define __unix__
14 # endif
15 # endif
17 # include <SDL.h>
18 # include <SDL_thread.h>
19 # ifndef __cplusplus
20 # include <SDL_syswm.h>
21 # ifdef USE_OPENGL
22 # include <SDL_opengl.h>
23 # endif
24 # endif
26 /* complement to above hack */
27 # undef index
28 # undef access
30 #endif /* ! __sdlmain_header */