SDL_opengl: Fix Mac build for SDK 10.9 too.
authorJørgen P. Tjernø <jorgen@uberent.com>
Wed, 04 Jun 2014 10:33:23 -0700
changeset 8812b0f96c169c97
parent 8811 3f0b8a86c65b
child 8813 beae556efafc
SDL_opengl: Fix Mac build for SDK 10.9 too.
include/SDL_opengl.h
include/SDL_syswm.h
     1.1 --- a/include/SDL_opengl.h	Wed Jun 04 09:59:10 2014 -0700
     1.2 +++ b/include/SDL_opengl.h	Wed Jun 04 10:33:23 2014 -0700
     1.3 @@ -51,7 +51,10 @@
     1.4  #endif
     1.5  #if defined(__MACOSX__)
     1.6  #include <stddef.h>             /* Needed for ptrdiff_t */
     1.7 +/* Hack to prevent duplicate definition of GLsizeiptrARB and GLintptrARB in <OpenGL/gltypes.h> */
     1.8 +#define GL_ARB_vertex_buffer_object 1
     1.9  #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
    1.10 +#undef GL_ARB_vertex_buffer_object
    1.11  #define __X_GL_H
    1.12  #else
    1.13  #include <GL/gl.h>              /* Header File For The OpenGL Library */
     2.1 --- a/include/SDL_syswm.h	Wed Jun 04 09:59:10 2014 -0700
     2.2 +++ b/include/SDL_syswm.h	Wed Jun 04 10:33:23 2014 -0700
     2.3 @@ -83,7 +83,7 @@
     2.4  
     2.5  #if defined(SDL_VIDEO_DRIVER_COCOA)
     2.6  #ifdef __OBJC__
     2.7 -#include <Cocoa/Cocoa.h>
     2.8 +@class NSWindow;
     2.9  #else
    2.10  typedef struct _NSWindow NSWindow;
    2.11  #endif