]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/cocoa/chkconf.h
2 * Name: wx/osx/cocoa/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: Stefan Csomor
7 * Copyright: (c) Stefan Csomor
8 * Licence: wxWindows licence
11 #ifndef _WX_OSX_COCOA_CHKCONF_H_
12 #define _WX_OSX_COCOA_CHKCONF_H_
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
20 #define HAVE_WCSNLEN 1
21 #define HAVE_WCSCASECMP 1
22 #define HAVE_WCSNCASECMP 1
26 * native (1) or emulated (0) toolbar
29 #ifndef wxOSX_USE_NATIVE_TOOLBAR
30 #define wxOSX_USE_NATIVE_TOOLBAR 1
34 * leave is isFlipped and don't override
36 #ifndef wxOSX_USE_NATIVE_FLIPPED
37 #define wxOSX_USE_NATIVE_FLIPPED 1
41 * text rendering system
44 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
46 #define wxOSX_USE_CORE_TEXT 1
47 #define wxOSX_USE_ATSU_TEXT 0
49 #else // platform < 10.5
51 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
52 #define wxOSX_USE_CORE_TEXT 1
54 #define wxOSX_USE_CORE_TEXT 0
56 #define wxOSX_USE_ATSU_TEXT 1
64 #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5
65 #define wxOSX_USE_QUICKTIME 0
66 #define wxOSX_USE_AUDIOTOOLBOX 1
67 #else // platform < 10.5
68 #define wxOSX_USE_QUICKTIME 1
69 #define wxOSX_USE_AUDIOTOOLBOX 0
73 * turning off capabilities that don't work under cocoa yet
77 /* _WX_MAC_CHKCONF_H_ */