glu: fix compilation problem when using Windows gl.h (sf bug 2204589)
authorNigel Stewart <nigels@sourceforge.net>
Wed, 29 Oct 2008 15:22:05 +0000 (09:22 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Oct 2008 15:23:48 +0000 (09:23 -0600)
include/GL/glu.h

index 3cd1113509f52c5734e6c5ac93d61f84372c8a1e..cd967ac5ed4b12d1efe58fb7ee2382a7fa1e9bc1 100644 (file)
 #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 *