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

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 29 15:24:26 UTC 2008


Module: Mesa
Branch: master
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