Mesa (mesa_7_2_branch): glu: fix compilation problem when using Windows gl. h (sf bug 2204589)
Brian Paul
brianp at kemper.freedesktop.org
Wed Oct 29 15:25:26 UTC 2008
Module: Mesa
Branch: mesa_7_2_branch
Commit: c7f0b9460caf3d3646c32f98bfc5d10267b06700
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7f0b9460caf3d3646c32f98bfc5d10267b06700
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