]> git.mxchange.org Git - simgear.git/commitdiff
Another Cygwin fix. This seems to take care of things proeprly.
authorehofman <ehofman>
Thu, 18 Mar 2004 09:25:28 +0000 (09:25 +0000)
committerehofman <ehofman>
Thu, 18 Mar 2004 09:25:28 +0000 (09:25 +0000)
simgear/screen/extensions.hxx

index cb7616798d031d939d47e4cfa5a04537d45e368a..bc3219ac8d9daaa37b3f0cd3268579d82dfd032d 100644 (file)
 #ifndef __SG_EXTENSIONS_HXX
 #define __SG_EXTENSIONS_HXX 1
 
-#if !defined(WIN32)
-# include <dlfcn.h>
-#endif
-
 #if defined(__CYGWIN__)  /* && !defined(USING_X) */
 #define WIN32
 #endif
 # include <windows.h>
 #endif
 
+#if !defined(WIN32)
+# include <dlfcn.h>
+#endif
+
 #include <GL/gl.h>
 
 
@@ -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__ )