comparison src/video/SDL_sysvideo.h @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents 19418e4422cb
children 5151662ab728
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 #ifndef _SDL_sysvideo_h 24 #ifndef _SDL_sysvideo_h
24 #define _SDL_sysvideo_h 25 #define _SDL_sysvideo_h
25 26
26 #include "SDL_mouse.h" 27 #include "SDL_mouse.h"
30 31
31 /* This file prototypes the video driver implementation. 32 /* This file prototypes the video driver implementation.
32 This is designed to be easily converted to C++ in the future. 33 This is designed to be easily converted to C++ in the future.
33 */ 34 */
34 35
35 /* OpenGL is pretty much available on all Windows systems */
36 #ifdef WIN32
37 #include "SDL_windows.h"
38 #endif
39
40 #if SDL_VIDEO_OPENGL 36 #if SDL_VIDEO_OPENGL
41 #ifdef MACOSX 37 #include "SDL_opengl.h"
42 #include <OpenGL/gl.h> /* OpenGL.framework */
43 #else
44 #include <GL/gl.h>
45 #endif /* MACOSX */
46 #endif /* SDL_VIDEO_OPENGL */ 38 #endif /* SDL_VIDEO_OPENGL */
47 39
48 /* The SDL video driver */ 40 /* The SDL video driver */
49 typedef struct SDL_VideoDevice SDL_VideoDevice; 41 typedef struct SDL_VideoDevice SDL_VideoDevice;
50 42