]> git.saurik.com Git - wxWidgets.git/commitdiff
common xcode support
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Nov 2007 09:25:39 +0000 (09:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Nov 2007 09:25:39 +0000 (09:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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