]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
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 | |
65571936 | 9 | * Licence: wxWindows licence |
8cf73271 SC |
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 | ||
8cf73271 SC |
19 | #if defined(__MWERKS__) |
20 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
21 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
70d72495 | 22 | |
1c0338c5 | 23 | /* DS: Fixes compilation when wxUSE_ON_FATAL_EXCEPTION is 1 */ |
70d72495 DS |
24 | #ifndef wxTYPE_SA_HANDLER |
25 | #define wxTYPE_SA_HANDLER int | |
26 | #endif | |
8cf73271 SC |
27 | #endif |
28 | ||
20b69855 SC |
29 | /* |
30 | * use OS X CoreGraphics (1) or QuickDraw (0) for rendering | |
31 | */ | |
32 | ||
33 | #ifndef wxMAC_USE_CORE_GRAPHICS | |
c3f1f8d8 | 34 | #define wxMAC_USE_CORE_GRAPHICS 1 |
20b69855 SC |
35 | #endif |
36 | ||
8946d7fd SC |
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 | ||
7a14d082 RD |
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 | ||
db12374b SC |
53 | /* |
54 | * native (1) or emulated (0) toolbar | |
55 | */ | |
56 | ||
57 | #ifndef wxMAC_USE_NATIVE_TOOLBAR | |
c3f1f8d8 | 58 | #define wxMAC_USE_NATIVE_TOOLBAR 1 |
db12374b SC |
59 | #endif |
60 | ||
ebf2a1ec SC |
61 | /* |
62 | * using mixins of cocoa functionality | |
63 | */ | |
64 | ||
65 | #ifndef wxMAC_USE_COCOA | |
66 | #define wxMAC_USE_COCOA 0 | |
67 | #endif | |
68 | ||
0beae935 | 69 | /* |
9c16962b | 70 | * setting flags according to the platform |
0beae935 SC |
71 | */ |
72 | ||
73 | #ifdef __LP64__ | |
9c16962b SC |
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 | |
ce4cf385 SC |
80 | #ifdef __WXASPEN__ |
81 | #define wxMAC_USE_QUICKDRAW 0 | |
82 | #else | |
83 | #define wxMAC_USE_QUICKDRAW 1 | |
84 | #endif | |
9c16962b SC |
85 | #endif |
86 | ||
87 | /* | |
88 | * text rendering system | |
89 | */ | |
90 | ||
91 | /* we have different options and we turn on all that make sense | |
92 | * under a certain platform | |
93 | */ | |
94 | ||
95 | #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 | |
96 | ||
0ce70bf3 SC |
97 | #define wxMAC_USE_CORE_TEXT 1 |
98 | #define wxMAC_USE_ATSU_TEXT 0 | |
9c16962b SC |
99 | |
100 | #else // platform < 10.5 | |
101 | ||
102 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 | |
103 | #define wxMAC_USE_CORE_TEXT 1 | |
104 | #else | |
105 | #define wxMAC_USE_CORE_TEXT 0 | |
106 | #endif | |
107 | #define wxMAC_USE_ATSU_TEXT 1 | |
0beae935 | 108 | |
9c16962b SC |
109 | #endif |
110 | ||
111 | // pure coregraphics text | |
112 | #define wxMAC_USE_CG_TEXT 0 | |
113 | ||
114 | /* | |
115 | * turning off capabilities that don't work under 64 bit yet | |
116 | */ | |
0beae935 | 117 | |
9c16962b SC |
118 | #ifdef __LP64__ |
119 | ||
120 | #if wxUSE_DRAG_AND_DROP | |
0beae935 SC |
121 | #undef wxUSE_DRAG_AND_DROP |
122 | #define wxUSE_DRAG_AND_DROP 0 | |
9c16962b | 123 | #endif |
0beae935 | 124 | |
9c16962b | 125 | #if wxUSE_TASKBARICON |
0beae935 SC |
126 | #undef wxUSE_TASKBARICON |
127 | #define wxUSE_TASKBARICON 0 | |
9c16962b | 128 | #endif |
0beae935 | 129 | |
9c16962b | 130 | #if wxUSE_TOOLTIPS |
0beae935 SC |
131 | #undef wxUSE_TOOLTIPS |
132 | #define wxUSE_TOOLTIPS 0 | |
9c16962b | 133 | #endif |
0beae935 SC |
134 | |
135 | ||
136 | #endif | |
137 | ||
138 | ||
8cf73271 SC |
139 | #endif |
140 | /* _WX_MAC_CHKCONF_H_ */ | |
141 |