diff --git a/src/video/maccommon/SDL_lowvideo.h b/src/video/maccommon/SDL_lowvideo.h index 4151412dd..1f7316c4a 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.framework */ -#include /* AGL.framework */ -#else -#include -#include -#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 c43327915..9cb960299 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.framework */ #include /* AGL.framework */ #else -#include #include -#endif /* MACOSX */ #endif +#endif /* SDL_VIDEO_OPENGL */ /* OpenGL functions */ extern int Mac_GL_Init(_THIS);