Revision
275
Author
jeremyhu@freedesktop.org
Date
2009-02-28 17:34:27 -0800 (Sat, 28 Feb 2009)

Log Message

Add GLAPI GLAPIENTRY APIENTRY APIENTRYP GLAPIENTRYP

Modified Paths

Diff

Modified: AppleSGLX/trunk/include/GL/gl.h (274 => 275)


--- AppleSGLX/trunk/include/GL/gl.h	2009-02-28 09:02:56 UTC (rev 274)
+++ AppleSGLX/trunk/include/GL/gl.h	2009-03-01 01:34:27 UTC (rev 275)
@@ -57,5 +57,26 @@
 
 #endif /* GL_MESA_packed_depth_stencil */
 
+/* Various other OS projects expect to get these macros from Mesa's gl.h */
+#ifndef GLAPI
+#define GLAPI extern
+#endif
 
+#ifndef GLAPIENTRY
+#define GLAPIENTRY
+#endif
+
+#ifndef APIENTRY
+#define APIENTRY GLAPIENTRY
+#endif
+
+/* "P" suffix to be used for a pointer to a function */
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+
+#ifndef GLAPIENTRYP
+#define GLAPIENTRYP GLAPIENTRY *
+#endif
+
 #endif /*__X_GL_H*/