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