summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzhang <zxpmyth@yahoo.com.cn>2007-06-28 08:12:52 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-28 08:12:52 -0600
commite632964bd77ddcc0b0c5b1949bf0b4b14fe84299 (patch)
treee2b5c35083a28ecbe73c834fd42bf21b27e33666 /include
parent6f266c2afed6b3826dcbb15e5e1052e08eb02566 (diff)
downloadglu-e632964bd77ddcc0b0c5b1949bf0b4b14fe84299.tar.gz
a variety of fixes for MingW
Diffstat (limited to 'include')
-rw-r--r--include/GL/glu.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/GL/glu.h b/include/GL/glu.h
index c0bac75..d82103d 100644
--- a/include/GL/glu.h
+++ b/include/GL/glu.h
@@ -44,6 +44,19 @@
#define GLAPIENTRYP GLAPIENTRY *
#endif
+#ifdef GLAPI
+#undef GLAPI
+#endif
+
+# if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GLU32)
+# define GLAPI __declspec(dllexport)
+# elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
+# define GLAPI __declspec(dllimport)
+# else /* for use with static link lib build of Win32 edition only */
+# define GLAPI extern
+# endif /* _STATIC_MESA support */
+
+
#ifndef GLAPI
#define GLAPI
#endif