Mesa (refs/remotes/origin/HEAD): glu: fix compilation problem when using Windows gl.h (sf bug 2204589)

Gary Wong gary at kemper.freedesktop.org
Fri Oct 31 21:39:17 UTC 2008


Module: Mesa
Branch: refs/remotes/origin/HEAD
Commit: cd1283f5151749db87edadb16a2aab4ed3b46363
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd1283f5151749db87edadb16a2aab4ed3b46363

Author: Nigel Stewart <nigels at sourceforge.net>
Date:   Wed Oct 29 09:22:05 2008 -0600

glu: fix compilation problem when using Windows gl.h (sf bug 2204589)

---

 include/GL/glu.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/GL/glu.h b/include/GL/glu.h
index 3cd1113..cd967ac 100644
--- a/include/GL/glu.h
+++ b/include/GL/glu.h
@@ -38,8 +38,12 @@
 #include <GL/gl.h>
 
 #ifndef GLAPIENTRY
+#if defined(_MSC_VER) || defined(__MINGW32__)
+#define GLAPIENTRY __stdcall
+#else
 #define GLAPIENTRY
 #endif
+#endif
 
 #ifndef GLAPIENTRYP
 #define GLAPIENTRYP GLAPIENTRY *




More information about the mesa-commit mailing list