From 9c0ec39770064c713a632d34299c3b6e5f37da65 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 8 Apr 2014 11:47:24 +0200 Subject: [PATCH] Fixed revert of e7c7ebf665. Fixes #269. --- deps/GL/glext.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deps/GL/glext.h b/deps/GL/glext.h index 29d54af3..63497b01 100644 --- a/deps/GL/glext.h +++ b/deps/GL/glext.h @@ -4135,8 +4135,16 @@ GLAPI void APIENTRY glVertexBlendARB (GLint count); #ifndef GL_ARB_vertex_buffer_object #define GL_ARB_vertex_buffer_object 1 +/* HACK: This is a workaround for gltypes.h on OS X 10.9 defining these types as + * long instead of ptrdiff_t + */ +#if defined(__APPLE__) +typedef long GLsizeiptrARB; +typedef long GLintptrARB; +#else typedef ptrdiff_t GLsizeiptrARB; typedef ptrdiff_t GLintptrARB; +#endif #define GL_BUFFER_SIZE_ARB 0x8764 #define GL_BUFFER_USAGE_ARB 0x8765 #define GL_ARRAY_BUFFER_ARB 0x8892