Commit a5781ca3e1ccc5a924880511cccceba5a61faf7c

sammy 2008-04-23T09:50:17

* Assume unknown operating systems share the GLUTesselatorFunction prototype with other standard Linux/Unix systems. It's a pretty safe bet and spares us from patching the code each time a new system such as GNU/kFreeBSD appears.

diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index 3d7fce0..a9217be 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -42,14 +42,12 @@
 #define CALLBACK
 #endif
 
-#ifdef __APPLE_CC__    
-    typedef GLvoid (*GLUTesselatorFunction)(...);
-#elif defined( __mips ) || defined( __linux__ ) || defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __sun ) || defined (__CYGWIN__)
-    typedef GLvoid (*GLUTesselatorFunction)();
-#elif defined ( WIN32)
-    typedef GLvoid (CALLBACK *GLUTesselatorFunction)( );
+#if defined __APPLE_CC__
+    typedef GLvoid (*GLUTesselatorFunction) (...);
+#elif defined WIN32 && !defined __CYGWIN__
+    typedef GLvoid (CALLBACK *GLUTesselatorFunction) ();
 #else
-    #error "Error - need to define type GLUTesselatorFunction for this platform/compiler"
+    typedef GLvoid (*GLUTesselatorFunction) ();
 #endif