From 5d813aa4d04f7bb5c9ea5f5cd3dbdadcdba4c476 Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 16 Mar 2004 09:24:14 +0000 Subject: [PATCH] Attempt to fix a nasty Cygwin problem. --- simgear/scene/sky/clouds3d/glut_shapes.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/simgear/scene/sky/clouds3d/glut_shapes.h b/simgear/scene/sky/clouds3d/glut_shapes.h index 5ba75633..9a02767a 100644 --- a/simgear/scene/sky/clouds3d/glut_shapes.h +++ b/simgear/scene/sky/clouds3d/glut_shapes.h @@ -1,3 +1,7 @@ + +#ifndef __GLUT_SHAPES_H +#define __GLUT_SHAPES_H 1 + #ifdef HAVE_CONFIG_H # include #endif @@ -9,12 +13,19 @@ #include -#define APIENTRY +#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__) +# include +#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