summaryrefslogtreecommitdiff
path: root/include
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
commit0f15a0fede0643b6bcdafb1b15d6427e82401429 (patch)
treebb658c33d32ee9d068c392129c5f9f6b55b3c11c /include
parent6074ff9e81509f02637dd2276023e7933ed6feab (diff)
downloadglu-0f15a0fede0643b6bcdafb1b15d6427e82401429.tar.gz
glu: fix compilation problem when using Windows gl.h (sf bug 2204589)
Diffstat (limited to 'include')
-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 *