[Xquartz-changes] [275] AppleSGLX/trunk/include/GL/gl.h
source_changes at macosforge.org
source_changes at macosforge.org
Sat Feb 28 17:34:28 PST 2009
Revision: 275
http://trac.macosforge.org/projects/xquartz/changeset/275
Author: jeremyhu at freedesktop.org
Date: 2009-02-28 17:34:27 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
Add GLAPI GLAPIENTRY APIENTRY APIENTRYP GLAPIENTRYP
Modified Paths:
--------------
AppleSGLX/trunk/include/GL/gl.h
Modified: AppleSGLX/trunk/include/GL/gl.h
===================================================================
--- 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*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20090228/826e2b11/attachment.html>
More information about the Xquartz-changes
mailing list