]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/chkconf.h
reverted r51340: don't use wxWeakRef in the library code as long as not all supported...
[wxWidgets.git] / include / wx / mac / carbon / chkconf.h
1 /*
2 * Name: wx/mac/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: Julian Smart
5 * Modified by:
6 * Created: 01/02/97
7 * RCS-ID: $Id$
8 * Copyright: (c) Julian Smart
9 * Licence: wxWindows licence
10 */
11
12 #ifndef _WX_MAC_CHKCONF_H_
13 #define _WX_MAC_CHKCONF_H_
14
15 /*
16 * disable the settings which don't work for some compilers
17 */
18
19 #if defined(__MWERKS__)
20 #undef wxUSE_DEBUG_NEW_ALWAYS
21 #define wxUSE_DEBUG_NEW_ALWAYS 0
22
23 /* DS: Fixes compilation when wxUSE_ON_FATAL_EXCEPTION is 1 */
24 #ifndef wxTYPE_SA_HANDLER
25 #define wxTYPE_SA_HANDLER int
26 #endif
27 #endif
28
29 /*
30 * use OS X CoreGraphics (1) or QuickDraw (0) for rendering
31 */
32
33 #ifndef wxMAC_USE_CORE_GRAPHICS
34 #define wxMAC_USE_CORE_GRAPHICS 1
35 #endif
36
37 /*
38 * wxMAC_USE_CORE_GRAPHICS is now implemented in terms of wxUSE_GRAPHICS_CONTEXT
39 */
40
41 #if wxMAC_USE_CORE_GRAPHICS
42 #undef wxUSE_GRAPHICS_CONTEXT
43 #define wxUSE_GRAPHICS_CONTEXT 1
44 #endif
45
46 /*
47 * check graphics context option
48 */
49 #if wxUSE_GRAPHICS_CONTEXT && !wxMAC_USE_CORE_GRAPHICS
50 # error "wxUSE_GRAPHICS_CONTEXT on wxMac requires wxMAC_USE_CORE_GRAPHICS"
51 #endif
52
53 /*
54 * native (1) or emulated (0) toolbar
55 */
56
57 #ifndef wxMAC_USE_NATIVE_TOOLBAR
58 #define wxMAC_USE_NATIVE_TOOLBAR 1
59 #endif
60
61 /*
62 * using mixins of cocoa functionality
63 */
64
65 #ifndef wxMAC_USE_COCOA
66 #define wxMAC_USE_COCOA 0
67 #endif
68
69 /*
70 * setting flags according to the platform
71 */
72
73 #ifdef __LP64__
74 #if wxMAC_USE_COCOA == 0
75 #undef wxMAC_USE_COCOA
76 #define wxMAC_USE_COCOA 1
77 #endif
78 #define wxMAC_USE_QUICKDRAW 0
79 #else
80 #define wxMAC_USE_QUICKDRAW 1
81 #endif
82
83 /*
84 * text rendering system
85 */
86
87 /* we have different options and we turn on all that make sense
88 * under a certain platform
89 */
90
91 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
92
93 #define wxMAC_USE_CORE_TEXT 1
94 #define wxMAC_USE_ATSU_TEXT 0
95
96 #else // platform < 10.5
97
98 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
99 #define wxMAC_USE_CORE_TEXT 1
100 #else
101 #define wxMAC_USE_CORE_TEXT 0
102 #endif
103 #define wxMAC_USE_ATSU_TEXT 1
104
105 #endif
106
107 // pure coregraphics text
108 #define wxMAC_USE_CG_TEXT 0
109
110 /*
111 * turning off capabilities that don't work under 64 bit yet
112 */
113
114 #ifdef __LP64__
115
116 #if wxUSE_DRAG_AND_DROP
117 #undef wxUSE_DRAG_AND_DROP
118 #define wxUSE_DRAG_AND_DROP 0
119 #endif
120
121 #if wxUSE_TASKBARICON
122 #undef wxUSE_TASKBARICON
123 #define wxUSE_TASKBARICON 0
124 #endif
125
126 #if wxUSE_TOOLTIPS
127 #undef wxUSE_TOOLTIPS
128 #define wxUSE_TOOLTIPS 0
129 #endif
130
131
132 #endif
133
134
135 #endif
136 /* _WX_MAC_CHKCONF_H_ */
137