]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/platform.h
0.1.6-1
[wxWidgets.git] / include / wx / platform.h
index c78751eee6126e3cf9742c3269e8819f33c4a57c..3841c8c6ba797e27fe4605d656096456e53ea4a8 100644 (file)
@@ -19,7 +19,7 @@
     Codewarrior doesn't define any Windows symbols until some headers
     are included
 */
-#if __MWERKS__
+#ifdef __MWERKS__
 #    include <stddef.h>
 #endif
 
 #   endif
 #endif
 
+/*
+   Include wx/setup.h for the Unix platform defines generated by configure and
+   the library compilation options
+
+   Note that it must be included before defining hardware symbols below as they
+   could be already defined by configure
+ */
+#include "wx/setup.h"
+
 /*
    Hardware platform detection.
 
     #endif
 #endif /* alpha */
 
-/*
-   Include wx/setup.h for the Unix platform defines generated by configure and
-   the library compilation options
- */
-#include "wx/setup.h"
 
 /*
    adjust the Unicode setting: wxUSE_UNICODE should be defined as 0 or 1
 #   include "wx/msw/wince/libraries.h"
 #endif
 
-/* Force inclusion of main PalmOS header: */
-#ifdef __WXPALMOS__
-#   include <PalmOS.h>
-#   undef Abs
-#endif
-
 /*
    This macro can be used to test the gcc version and can be used like this:
 
     ( defined( __CYGWIN__ ) && defined( __WINDOWS__ ) ) || \
       (defined(__WATCOMC__) && __WATCOMC__ >= 1200) ) && \
     !defined(__DOS__) && \
+    !defined(__WXOS2__) && \
     !defined(__WXMOTIF__) && \
     !defined(__WXGTK__) && \
     !defined(__WXX11__) && \
 #endif
 
 #endif /* _WX_PLATFORM_H_ */
-