]> git.mxchange.org Git - simgear.git/commitdiff
Attempt to fix a nasty Cygwin problem.
authorehofman <ehofman>
Tue, 16 Mar 2004 09:24:14 +0000 (09:24 +0000)
committerehofman <ehofman>
Tue, 16 Mar 2004 09:24:14 +0000 (09:24 +0000)
simgear/scene/sky/clouds3d/glut_shapes.h

index 5ba7563356604a55e4bde75570228bc27f754dd7..9a02767a5c507154ddba1b460e4fcba197a85f42 100644 (file)
@@ -1,3 +1,7 @@
+
+#ifndef __GLUT_SHAPES_H
+#define __GLUT_SHAPES_H 1
+
 #ifdef HAVE_CONFIG_H
 #  include <simgear_config.h>
 #endif
 
 #include <GL/gl.h>
 
-#define APIENTRY
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+# include <windows.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+#ifndef APIENTRY
+#define APIENTRY
+#endif
+
+
 extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
 ;
 extern void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks
@@ -41,3 +52,5 @@ extern void APIENTRY glutSolidIcosahedron(void);
 #ifdef __cplusplus
 }
 #endif
+
+#endif // !__GLUT_SHAPES_H