]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/cocoa/chkconf.h
d926cdfd880715b39b483b9dbd3aa16bff104e94
[wxWidgets.git] / include / wx / osx / cocoa / chkconf.h
1 /*
2 * Name: wx/osx/cocoa/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: Stefan Csomor
5 * Modified by:
6 * Created: 2008-07-30
7 * RCS-ID: $Id$
8 * Copyright: (c) Stefan Csomor
9 * Licence: wxWindows licence
10 */
11
12 #ifndef _WX_OSX_COCOA_CHKCONF_H_
13 #define _WX_OSX_COCOA_CHKCONF_H_
14
15 /* Many wchar functions (and also strnlen(), for some reason) are only
16 available since 10.7 so don't use them if we want to build the applications
17 that would run under 10.6 and earlier. */
18 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
19 #define HAVE_STRNLEN 1
20 #define HAVE_WCSDUP 1
21 #define HAVE_WCSNLEN 1
22 #define HAVE_WCSCASECMP 1
23 #define HAVE_WCSNCASECMP 1
24 #endif
25
26 /*
27 * native (1) or emulated (0) toolbar
28 */
29
30 #ifndef wxOSX_USE_NATIVE_TOOLBAR
31 #define wxOSX_USE_NATIVE_TOOLBAR 1
32 #endif
33
34 /*
35 * leave is isFlipped and don't override
36 */
37 #ifndef wxOSX_USE_NATIVE_FLIPPED
38 #define wxOSX_USE_NATIVE_FLIPPED 1
39 #endif
40
41 /*
42 * text rendering system
43 */
44
45 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
46
47 #define wxOSX_USE_CORE_TEXT 1
48 #define wxOSX_USE_ATSU_TEXT 0
49
50 #else // platform < 10.5
51
52 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
53 #define wxOSX_USE_CORE_TEXT 1
54 #else
55 #define wxOSX_USE_CORE_TEXT 0
56 #endif
57 #define wxOSX_USE_ATSU_TEXT 1
58
59 #endif
60
61 /*
62 * Audio System
63 */
64
65 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
66 #define wxOSX_USE_QUICKTIME 0
67 #define wxOSX_USE_AUDIOTOOLBOX 1
68 #else // platform < 10.5
69 #define wxOSX_USE_QUICKTIME 1
70 #define wxOSX_USE_AUDIOTOOLBOX 0
71 #endif
72
73 /*
74 * turning off capabilities that don't work under cocoa yet
75 */
76
77 #endif
78 /* _WX_MAC_CHKCONF_H_ */
79