Attempt to fix a nasty Cygwin problem.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user