Skip to content

Commit a11a1ca

Browse files
committed
Fixed the Apple SDL_opengl.h conflict in the 1.2 branch.
1 parent ccde1ce commit a11a1ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/SDL_opengl.h

+5
Original file line numberDiff line numberDiff line change
@@ -3108,9 +3108,14 @@ typedef char GLchar; /* native character */
31083108

31093109
#ifndef GL_VERSION_1_5
31103110
/* GL types for handling large vertex buffer objects */
3111+
#ifdef __APPLE__
3112+
typedef long GLintptr;
3113+
typedef long GLsizeiptr;
3114+
#else
31113115
typedef ptrdiff_t GLintptr;
31123116
typedef ptrdiff_t GLsizeiptr;
31133117
#endif
3118+
#endif
31143119

31153120
#ifndef GL_ARB_vertex_buffer_object
31163121
/* GL types for handling large vertex buffer objects */

0 commit comments

Comments
 (0)