| 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 | * 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 | |
| 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 | |
| 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 | |
| 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 | |
| 40 | /* |
| 41 | * text rendering system |
| 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 | |
| 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 |
| 66 | #define wxOSX_USE_AUDIOTOOLBOX 1 |
| 67 | #else // platform < 10.5 |
| 68 | #define wxOSX_USE_QUICKTIME 1 |
| 69 | #define wxOSX_USE_AUDIOTOOLBOX 0 |
| 70 | #endif |
| 71 | |
| 72 | /* |
| 73 | * turning off capabilities that don't work under cocoa yet |
| 74 | */ |
| 75 | |
| 76 | #endif |
| 77 | /* _WX_MAC_CHKCONF_H_ */ |
| 78 | |