--- codemp/rd-vanilla/glext.h.orig	2017-05-27 21:37:36.000000000 -0700
+++ codemp/rd-vanilla/glext.h	2017-05-27 21:37:59.000000000 -0700
@@ -65,6 +65,15 @@
  * Extensions removed: _nomatch_^
  */
 
+#if defined (__APPLE__)
+typedef long GLsizeiptrARB;
+typedef long GLintptrARB;
+#else
+typedef ptrdiff_t GLsizeiptrARB;
+typedef ptrdiff_t GLintptrARB;
+#endif
+
+
 #ifndef GL_VERSION_1_2
 #define GL_VERSION_1_2 1
 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
