]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
__UNIX__ redefition corrected
[wxWidgets.git] / include / wx / defs.h
index 32c27378fc5e186f82f924fbbc88819250669295..15e35984342cf8085dea18a1ba18f4385818fc0b 100644 (file)
@@ -26,9 +26,7 @@
     defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) || \
     defined(__EMX__)
 
-    #ifndef __UNIX__
-        #define __UNIX__
-    #endif // Unix
+    #define __UNIX_LIKE__
 
     // Helps SGI compilation, apparently
     #ifdef __SGI__
 #undef PACKAGE
 #undef VERSION
 
+// if we're on a Unixsystem but didn't use configure (so that setup.h didn't
+// define __UNIX__), do define __UNIX__ now
+#if !defined(__UNIX__) && defined(__UNIX_LIKE__)
+    #define __UNIX__
+#endif // Unix
+
 #include "wx/version.h"
 
 // ============================================================================