summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2007-08-24 08:49:59 +0100
committerBrian <[email protected]>2007-08-24 08:49:59 +0100
commitb3788a0e4f1f9fc06aa9f86c176dbc765194a1f1 (patch)
tree2e3279458a95d768e1288919cdabb3c5a3e2cbef /include
parent582bc029abb7b9b0fd2c6d3c3b131fa72931c4e4 (diff)
Unbreak Linux builds with -fvisibility=hidden.
Diffstat (limited to 'include')
-rw-r--r--include/GL/glu.h27
1 files changed, 11 insertions, 16 deletions
diff --git a/include/GL/glu.h b/include/GL/glu.h
index d82103d141a..7db4b707b51 100644
--- a/include/GL/glu.h
+++ b/include/GL/glu.h
@@ -44,22 +44,17 @@
#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
+#if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GLU32)
+# undef GLAPI
+# define GLAPI __declspec(dllexport)
+#elif (defined(_MSC_VER) || defined(__MINGW32__)) && defined(_DLL)
+/* tag specifying we're building for DLL runtime support */
+# undef GLAPI
+# define GLAPI __declspec(dllimport)
+#elif !defined(GLAPI)
+/* for use with static link lib build of Win32 edition only */
+# define GLAPI extern
+#endif /* _STATIC_MESA support */
#ifdef __cplusplus
extern "C" {