summaryrefslogtreecommitdiff
path: root/include/GL/gl.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-11-08 15:08:48 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-11-08 15:08:48 +0000
commit83889ffd970a807074d834849677fd233c031dc7 (patch)
treef048187a4bcbc88b0e73dd028830f30642447602 /include/GL/gl.h
parent5849e3d353d956643dd40a3d5f53c31e79ae8cf0 (diff)
Remove need for defining _MSC_VER when building Mesa for windows with
a non MS C compiler (MinGW). (Gregor Anich)
Diffstat (limited to 'include/GL/gl.h')
-rw-r--r--include/GL/gl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h
index 0bf4cd8097..d9c6e30eb2 100644
--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -53,9 +53,9 @@
#endif
#if !defined(OPENSTEP) && (defined(__WIN32__) && !defined(__CYGWIN__))
-# if defined(_MSC_VER) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
+# if (defined(_MSC_VER) || defined(__MINGW32__)) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
# define GLAPI __declspec(dllexport)
-# elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
+# 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