--- a/src/video/maccommon/SDL_lowvideo.h Sat Feb 25 20:47:42 2006 +0000
+++ b/src/video/maccommon/SDL_lowvideo.h Sat Feb 25 20:48:26 2006 +0000
@@ -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"
--- a/src/video/maccommon/SDL_macgl_c.h Sat Feb 25 20:47:42 2006 +0000
+++ b/src/video/maccommon/SDL_macgl_c.h Sat Feb 25 20:48:26 2006 +0000
@@ -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);