Skip to content

Commit

Permalink
SDL_opengl: Fix Mac build for SDK 10.9 too.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Jun 4, 2014
1 parent d623c0b commit d341844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/SDL_opengl.h
Expand Up @@ -51,7 +51,10 @@
#endif
#if defined(__MACOSX__)
#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 */
#undef GL_ARB_vertex_buffer_object
#define __X_GL_H
#else
#include <GL/gl.h> /* Header File For The OpenGL Library */
Expand Down
2 changes: 1 addition & 1 deletion include/SDL_syswm.h
Expand Up @@ -83,7 +83,7 @@ struct SDL_SysWMinfo;

#if defined(SDL_VIDEO_DRIVER_COCOA)
#ifdef __OBJC__
#include <Cocoa/Cocoa.h>
@class NSWindow;
#else
typedef struct _NSWindow NSWindow;
#endif
Expand Down

0 comments on commit d341844

Please sign in to comment.