diff --git a/src/osgText/FTGL.h b/src/osgText/FTGL.h index ea174f10b..bdef357db 100644 --- a/src/osgText/FTGL.h +++ b/src/osgText/FTGL.h @@ -33,6 +33,18 @@ #else +#if defined(__CYGWIN__) || defined(__MINGW32__) +# ifndef APIENTRY +# define GLUT_APIENTRY_DEFINED +# define APIENTRY __stdcall +# endif + // XXX This is from Win32's +# ifndef CALLBACK +# define CALLBACK __stdcall +# endif + +#else // ! __CYGWIN__ + // Under windows avoid including // to avoid name space pollution, but Win32's // needs APIENTRY and WINGDIAPI defined properly. @@ -58,6 +70,9 @@ # define CALLBACK # endif # endif + +#endif // __CYGWIN__ + // XXX This is from Win32's and # ifndef WINGDIAPI # define GLUT_WINGDIAPI_DEFINED