From: ehofman Date: Thu, 18 Mar 2004 09:25:28 +0000 (+0000) Subject: Another Cygwin fix. This seems to take care of things proeprly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8971a67aca5e3bebc1eac2e07ac3de6e9c13f45e;p=simgear.git Another Cygwin fix. This seems to take care of things proeprly. --- diff --git a/simgear/screen/extensions.hxx b/simgear/screen/extensions.hxx index cb761679..bc3219ac 100644 --- a/simgear/screen/extensions.hxx +++ b/simgear/screen/extensions.hxx @@ -24,10 +24,6 @@ #ifndef __SG_EXTENSIONS_HXX #define __SG_EXTENSIONS_HXX 1 -#if !defined(WIN32) -# include -#endif - #if defined(__CYGWIN__) /* && !defined(USING_X) */ #define WIN32 #endif @@ -36,6 +32,10 @@ # include #endif +#if !defined(WIN32) +# include +#endif + #include @@ -57,7 +57,7 @@ bool SGIsOpenGLExtensionSupported(char *extName); inline void (*SGLookupFunction(const char *func))() { -#if defined( WIN32 ) && !defined(__CYGWIN__) && !defined(__MINGW32__) +#if defined( WIN32 ) return (void (*)()) wglGetProcAddress(func); #elif defined( __APPLE__ )