Fix another Apple conflict in SDL_opengl.h
authorRyan C. Gordon <icculus@icculus.org>
Fri, 26 Aug 2011 03:38:46 -0400
changeset 5647 022880331cac
parent 5646 fe1df351ca3d
child 5650 640c67302f8e
Fix another Apple conflict in SDL_opengl.h
include/SDL_opengl.h
--- a/include/SDL_opengl.h	Thu Aug 25 03:11:28 2011 -0400
+++ b/include/SDL_opengl.h	Fri Aug 26 03:38:46 2011 -0400
@@ -5105,9 +5105,14 @@
 
 #ifndef GL_VERSION_1_5
 /* GL types for handling large vertex buffer objects */
+#if defined(__APPLE__)
+typedef long GLintptr;
+typedef long GLsizeiptr;
+#else
 typedef ptrdiff_t GLintptr;
 typedef ptrdiff_t GLsizeiptr;
 #endif
+#endif
 
 #ifndef GL_ARB_vertex_buffer_object
 /* GL types for handling large vertex buffer objects */