summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzhang <zxpmyth@yahoo.com.cn>2007-06-28 08:12:52 -0600
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:35 +0100
commit85c9b897500d4832eca15802ddbf1bf75cbb7045 (patch)
tree7bd0a5de067e8abfde2344b9e53aad44abd5f32d /include
parent14273c06ffd74d22d1987214d522c85692c66597 (diff)
a variety of fixes for MingW
Diffstat (limited to 'include')
-rw-r--r--include/GL/glut.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/GL/glut.h b/include/GL/glut.h
index 23c740e..e0fad6e 100644
--- a/include/GL/glut.h
+++ b/include/GL/glut.h
@@ -115,7 +115,7 @@ extern _CRTIMP void __cdecl exit(int);
#endif
/* GLUT API entry point declarations for Win32. */
-#if defined(GLUT_BUILDING_LIB) && defined(_DLL)
+#if (defined(BUILD_GLUT32) || defined(GLUT_BUILDING_LIB)) && defined(_DLL)
# define GLUTAPI __declspec(dllexport)
#elif defined(_DLL)
# define GLUTAPI __declspec(dllimport)
@@ -131,8 +131,10 @@ extern _CRTIMP void __cdecl exit(int);
# endif
# define CALLBACK __stdcall
typedef int (GLUTAPIENTRY *PROC)();
-typedef void *HGLRC;
-typedef void *HDC;
+#if !defined(__MINGW32__)
+ typedef void *HGLRC;
+ typedef void *HDC;
+#endif
typedef unsigned long COLORREF;
#endif