* 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
/*
* combination flags
*/
-
+
#if wxOSX_USE_COCOA || wxOSX_USE_CARBON
#define wxOSX_USE_COCOA_OR_CARBON 1
#else