X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/935e6c7dc1bcd9b0cb3937b09b6657c90771c6ce..43ff861df48f0837dac98005dd397c5f127ca136:/include/wx/osx/chkconf.h diff --git a/include/wx/osx/chkconf.h b/include/wx/osx/chkconf.h index 77a9ca66c2..614c9d9164 100644 --- a/include/wx/osx/chkconf.h +++ b/include/wx/osx/chkconf.h @@ -40,15 +40,16 @@ * we only use core graphics now on all builds, try to catch attempts * to configure the build otherwise and give error messages */ - -#if !wxUSE_GRAPHICS_CONTEXT || ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ) + +#if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \ + ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS )) # error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely" #endif /* * using mixins of cocoa functionality */ - + #ifdef __WXOSX_COCOA__ #define wxOSX_USE_COCOA 1 #else @@ -70,7 +71,9 @@ #undef wxOSX_USE_COCOA #define wxOSX_USE_COCOA 1 #endif - #define wxOSX_USE_CARBON 0 + #if wxOSX_USE_CARBON + #error "Carbon does not support 64bit" + #endif #define wxOSX_USE_IPHONE 0 #else #ifdef __WXOSX_IPHONE__ @@ -83,7 +86,7 @@ /* * combination flags */ - + #if wxOSX_USE_COCOA || wxOSX_USE_CARBON #define wxOSX_USE_COCOA_OR_CARBON 1 #else @@ -104,4 +107,4 @@ #include "wx/osx/cocoa/chkconf.h" #endif -#endif // _WX_OSX_CHKCONF_H_ \ No newline at end of file +#endif // _WX_OSX_CHKCONF_H_