Attempt to fix a nasty Cygwin problem.

This commit is contained in:
ehofman
2004-03-16 09:24:14 +00:00
parent ce3a1ddcb0
commit 5d813aa4d0
+14 -1
View File
@@ -1,3 +1,7 @@
#ifndef __GLUT_SHAPES_H
#define __GLUT_SHAPES_H 1
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <simgear_config.h> # include <simgear_config.h>
#endif #endif
@@ -9,12 +13,19 @@
#include <GL/gl.h> #include <GL/gl.h>
#define APIENTRY #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
# include <windows.h>
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#ifndef APIENTRY
#define APIENTRY
#endif
extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks) extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
; ;
extern void APIENTRY glutSolidSphere(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 #ifdef __cplusplus
} }
#endif #endif
#endif // !__GLUT_SHAPES_H