]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/chkconf.h
2 * Name: wx/mac/chkconf.h
3 * Purpose: Compiler-specific configuration checking
8 * Copyright: (c) Julian Smart
9 * Licence: wxWindows licence
12 #ifndef _WX_MAC_CHKCONF_H_
13 #define _WX_MAC_CHKCONF_H_
16 * disable the settings which don't work for some compilers
19 #if defined(__MWERKS__)
20 #undef wxUSE_DEBUG_NEW_ALWAYS
21 #define wxUSE_DEBUG_NEW_ALWAYS 0
23 /* DS: Fixes compilation when wxUSE_ON_FATAL_EXCEPTION is 1 */
24 #ifndef wxTYPE_SA_HANDLER
25 #define wxTYPE_SA_HANDLER int
30 * use OS X CoreGraphics (1) or QuickDraw (0) for rendering
33 #ifndef wxMAC_USE_CORE_GRAPHICS
34 #define wxMAC_USE_CORE_GRAPHICS 1
38 * wxMAC_USE_CORE_GRAPHICS is now implemented in terms of wxUSE_GRAPHICS_CONTEXT
41 #if wxMAC_USE_CORE_GRAPHICS
42 #undef wxUSE_GRAPHICS_CONTEXT
43 #define wxUSE_GRAPHICS_CONTEXT 1
47 * check graphics context option
49 #if wxUSE_GRAPHICS_CONTEXT && !wxMAC_USE_CORE_GRAPHICS
50 # error "wxUSE_GRAPHICS_CONTEXT on wxMac requires wxMAC_USE_CORE_GRAPHICS"
54 * native (1) or emulated (0) toolbar
57 #ifndef wxMAC_USE_NATIVE_TOOLBAR
58 #define wxMAC_USE_NATIVE_TOOLBAR 1
62 * using mixins of cocoa functionality
65 #ifndef wxMAC_USE_COCOA
66 #define wxMAC_USE_COCOA 0
70 * setting flags according to the platform
74 #if wxMAC_USE_COCOA == 0
75 #undef wxMAC_USE_COCOA
76 #define wxMAC_USE_COCOA 1
78 #define wxMAC_USE_QUICKDRAW 0
81 #define wxMAC_USE_QUICKDRAW 0
83 #define wxMAC_USE_QUICKDRAW 1
88 * text rendering system
91 /* we have different options and we turn on all that make sense
92 * under a certain platform
95 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
98 #define wxMAC_USE_CG_TEXT 1
99 #define wxMAC_USE_CORE_TEXT 0
100 #define wxMAC_USE_ATSU_TEXT 0
102 #define wxMAC_USE_CORE_TEXT 1
103 #define wxMAC_USE_ATSU_TEXT 0
104 #define wxMAC_USE_CG_TEXT 0
107 #else // platform < 10.5
109 #define wxMAC_USE_CG_TEXT 0
111 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
112 #define wxMAC_USE_CORE_TEXT 1
114 #define wxMAC_USE_CORE_TEXT 0
116 #define wxMAC_USE_ATSU_TEXT 1
121 * turning off capabilities that don't work under 64 bit yet
126 #if wxUSE_DRAG_AND_DROP
127 #undef wxUSE_DRAG_AND_DROP
128 #define wxUSE_DRAG_AND_DROP 0
131 #if wxUSE_TASKBARICON
132 #undef wxUSE_TASKBARICON
133 #define wxUSE_TASKBARICON 0
137 #undef wxUSE_TOOLTIPS
138 #define wxUSE_TOOLTIPS 0
146 /* _WX_MAC_CHKCONF_H_ */