summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-02-25 20:48:26 +0000
committerSam Lantinga <slouken@libsdl.org>2006-02-25 20:48:26 +0000
commit83090323efef4c31726424eb4da90740f687352c (patch)
treeb0ad86286aa04e91f672c2a4a36c8bf3a51f3646
parent34802f061bc514fc4ce0c7e9f63c2dc168cc4b16 (diff)
*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401436
-rw-r--r--src/video/maccommon/SDL_lowvideo.h8
-rw-r--r--src/video/maccommon/SDL_macgl_c.h5
2 files changed, 3 insertions, 10 deletions
diff --git a/src/video/maccommon/SDL_lowvideo.h b/src/video/maccommon/SDL_lowvideo.h
index 4151412d..1f7316c4 100644
--- a/src/video/maccommon/SDL_lowvideo.h
+++ b/src/video/maccommon/SDL_lowvideo.h
@@ -36,13 +36,7 @@
#endif
#if SDL_VIDEO_OPENGL
-#ifdef MACOSX
-#include <OpenGL/gl.h> /* OpenGL.framework */
-#include <AGL/agl.h> /* AGL.framework */
-#else
-#include <gl.h>
-#include <agl.h>
-#endif /* MACOSX */
+typedef struct __AGLContextRec *AGLContext;
#endif
#include "SDL_video.h"
diff --git a/src/video/maccommon/SDL_macgl_c.h b/src/video/maccommon/SDL_macgl_c.h
index c4332791..9cb96029 100644
--- a/src/video/maccommon/SDL_macgl_c.h
+++ b/src/video/maccommon/SDL_macgl_c.h
@@ -25,14 +25,13 @@
#include "SDL_config.h"
#if SDL_VIDEO_OPENGL
+#include "SDL_opengl.h"
#ifdef MACOSX
-#include <OpenGL/gl.h> /* OpenGL.framework */
#include <AGL/agl.h> /* AGL.framework */
#else
-#include <gl.h>
#include <agl.h>
-#endif /* MACOSX */
#endif
+#endif /* SDL_VIDEO_OPENGL */
/* OpenGL functions */
extern int Mac_GL_Init(_THIS);