]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/platform.h
unifying CFTypes
[wxWidgets.git] / include / wx / platform.h
index a174b2e706294811b4a2061d6b3f2e81305bceee..fce5c927cd5f83ef7c15282e8775305a461c7fc7 100644 (file)
 #        ifndef MAC_OS_X_VERSION_10_5
 #           define MAC_OS_X_VERSION_10_5 1050
 #        endif
-#        ifdef __WXMAC_XCODE__
-#            include <unistd.h>
-#            include "wx/mac/carbon/config_xcode.h"
-#        endif
 #    else
 #        error "only mach-o configurations are supported"
 #    endif
 #   define __WXOSX__
 #endif
 
+#ifdef __WXOSX__
+#    ifdef __WXMAC_XCODE__
+#        include <unistd.h>
+#        include "wx/mac/carbon/config_xcode.h"
+#    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