summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Stewart <nigels@sourceforge.net>2008-10-29 09:22:05 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-10-29 09:23:48 -0600
commitcd1283f5151749db87edadb16a2aab4ed3b46363 (patch)
tree653d1ba5a9aa070e169b8016903b6ef1fd9dbffc
parent26c1c04fd034f7c7522e94480f5aa30c98c72f35 (diff)
downloadexternal_mesa3d-cd1283f5151749db87edadb16a2aab4ed3b46363.zip
external_mesa3d-cd1283f5151749db87edadb16a2aab4ed3b46363.tar.gz
external_mesa3d-cd1283f5151749db87edadb16a2aab4ed3b46363.tar.bz2
glu: fix compilation problem when using Windows gl.h (sf bug 2204589)
-rw-r--r--include/GL/glu.h4
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 *