]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/chkconf.h
2 * Name: wx/osx/chkconf.h
3 * Purpose: Mac-specific config settings checks
4 * Author: Vadim Zeitlin
6 * Created: 2005-04-05 (extracted from wx/chkconf.h)
8 * Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
14 #ifndef _WX_OSX_CHKCONF_H_
15 #define _WX_OSX_CHKCONF_H_
19 /* not supported under Mac */
20 # undef wxUSE_STACKWALKER
21 # define wxUSE_STACKWALKER 0
22 #endif /* wxUSE_STACKWALKER */
25 * disable the settings which don't work for some compilers
28 #if defined(__MWERKS__)
29 #undef wxUSE_DEBUG_NEW_ALWAYS
30 #define wxUSE_DEBUG_NEW_ALWAYS 0
32 /* DS: Fixes compilation when wxUSE_ON_FATAL_EXCEPTION is 1 */
33 #ifndef wxTYPE_SA_HANDLER
34 #define wxTYPE_SA_HANDLER int
39 * check graphics context option, must be on for every os x platform
40 * we only use core graphics now on all builds, try to catch attempts
41 * to configure the build otherwise and give error messages
44 #if !wxUSE_GRAPHICS_CONTEXT || ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS )
45 # error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
49 * using mixins of cocoa functionality
52 #ifdef __WXOSX_COCOA__
53 #define wxOSX_USE_COCOA 1
55 #define wxOSX_USE_COCOA 0
58 #ifdef __WXOSX_CARBON__
59 #define wxOSX_USE_CARBON 1
61 #define wxOSX_USE_CARBON 0
65 * setting flags according to the platform
69 #if wxOSX_USE_COCOA == 0
70 #undef wxOSX_USE_COCOA
71 #define wxOSX_USE_COCOA 1
73 #define wxOSX_USE_CARBON 0
74 #define wxOSX_USE_IPHONE 0
76 #ifdef __WXOSX_IPHONE__
77 #define wxOSX_USE_IPHONE 1
79 #define wxOSX_USE_IPHONE 0
87 #if wxOSX_USE_COCOA || wxOSX_USE_CARBON
88 #define wxOSX_USE_COCOA_OR_CARBON 1
90 #define wxOSX_USE_COCOA_OR_CARBON 0
93 #if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
94 #define wxOSX_USE_COCOA_OR_IPHONE 1
96 #define wxOSX_USE_COCOA_OR_IPHONE 0
100 #include "wx/osx/iphone/chkconf.h"
101 #elif wxOSX_USE_CARBON
102 #include "wx/osx/carbon/chkconf.h"
103 #elif wxOSX_USE_COCOA
104 #include "wx/osx/cocoa/chkconf.h"
107 #endif // _WX_OSX_CHKCONF_H_