SDL_opengl: Fix Mac build for SDK 10.9 too.

This commit is contained in:
J?rgen P. Tjern? 2014-06-04 10:33:23 -07:00
parent d623c0b443
commit d34184461f
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@
#endif #endif
#if defined(__MACOSX__) #if defined(__MACOSX__)
#include <stddef.h> /* Needed for ptrdiff_t */ #include <stddef.h> /* Needed for ptrdiff_t */
/* Hack to prevent duplicate definition of GLsizeiptrARB and GLintptrARB in <OpenGL/gltypes.h> */
#define GL_ARB_vertex_buffer_object 1
#include <OpenGL/gl.h> /* Header File For The OpenGL Library */ #include <OpenGL/gl.h> /* Header File For The OpenGL Library */
#undef GL_ARB_vertex_buffer_object
#define __X_GL_H #define __X_GL_H
#else #else
#include <GL/gl.h> /* Header File For The OpenGL Library */ #include <GL/gl.h> /* Header File For The OpenGL Library */

View File

@ -83,7 +83,7 @@ struct SDL_SysWMinfo;
#if defined(SDL_VIDEO_DRIVER_COCOA) #if defined(SDL_VIDEO_DRIVER_COCOA)
#ifdef __OBJC__ #ifdef __OBJC__
#include <Cocoa/Cocoa.h> @class NSWindow;
#else #else
typedef struct _NSWindow NSWindow; typedef struct _NSWindow NSWindow;
#endif #endif