#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>
inline void (*SGLookupFunction(const char *func))()
{
-#if defined( WIN32 ) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+#if defined( WIN32 )
return (void (*)()) wglGetProcAddress(func);
#elif defined( __APPLE__ )