]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/platform.h
moved definition of TARGET_CARBON to generated setup.h when compiling with
[wxWidgets.git] / include / wx / platform.h
index 68fe507d825c205c1f0fc8ea85081c786db47166..f619504c01727df5211ac721f26624b600703c23 100644 (file)
 #ifndef _WX_PLATFORM_H_
 #define _WX_PLATFORM_H_
 
+
+/*
+    Codewarrior doesn't define any Windows symbols until some headers
+    are included
+*/
+#if __MWERKS__
+    #include <stddef.h>
+    #if defined(WIN32) || defined(_WIN32)
+        #ifndef WINVER
+            #define WINVER  0x0400
+        #endif
+    #endif
+#endif
+
+
 /*
    first define Windows symbols if they're not defined on the command line: we
    can autodetect everything we need if _WIN32 is defined