]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/cocoa/chkconf.h
d926cdfd880715b39b483b9dbd3aa16bff104e94
2 * Name: wx/osx/cocoa/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: Stefan Csomor
8 * Copyright: (c) Stefan Csomor
9 * Licence: wxWindows licence
12 #ifndef _WX_OSX_COCOA_CHKCONF_H_
13 #define _WX_OSX_COCOA_CHKCONF_H_
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
21 #define HAVE_WCSNLEN 1
22 #define HAVE_WCSCASECMP 1
23 #define HAVE_WCSNCASECMP 1
27 * native (1) or emulated (0) toolbar
30 #ifndef wxOSX_USE_NATIVE_TOOLBAR
31 #define wxOSX_USE_NATIVE_TOOLBAR 1
35 * leave is isFlipped and don't override
37 #ifndef wxOSX_USE_NATIVE_FLIPPED
38 #define wxOSX_USE_NATIVE_FLIPPED 1
42 * text rendering system
45 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
47 #define wxOSX_USE_CORE_TEXT 1
48 #define wxOSX_USE_ATSU_TEXT 0
50 #else // platform < 10.5
52 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
53 #define wxOSX_USE_CORE_TEXT 1
55 #define wxOSX_USE_CORE_TEXT 0
57 #define wxOSX_USE_ATSU_TEXT 1
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
74 * turning off capabilities that don't work under cocoa yet
78 /* _WX_MAC_CHKCONF_H_ */