Browse Source

Fixed building as a universal binary on OS X (resolves issue #793)

Alex Szpakowski 11 years ago
parent
commit
c83e3c33c5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/modules/graphics/opengl/GLee.h

+ 6 - 0
src/modules/graphics/opengl/GLee.h

@@ -1056,9 +1056,15 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_igloo_interface;
 #endif
 #endif
 
 
 #ifndef GL_ARB_vertex_buffer_object
 #ifndef GL_ARB_vertex_buffer_object
+	/* awful hack to work around issue with GLee and Mac OS 10.9's gltypes.h */
+#if defined(__APPLE__)
+	typedef long GLintptrARB;
+	typedef long GLsizeiptrARB;
+#else
 	typedef ptrdiff_t GLintptrARB;
 	typedef ptrdiff_t GLintptrARB;
 	typedef ptrdiff_t GLsizeiptrARB;
 	typedef ptrdiff_t GLsizeiptrARB;
 #endif
 #endif
+#endif
 
 
 #ifndef GL_ARB_shader_objects
 #ifndef GL_ARB_shader_objects
 #if defined(__APPLE__)
 #if defined(__APPLE__)