chkconf.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef _WX_OSX_COCOA_CHKCONF_H_
  11. #define _WX_OSX_COCOA_CHKCONF_H_
  12. /* Many wchar functions (and also strnlen(), for some reason) are only
  13. available since 10.7 so don't use them if we want to build the applications
  14. that would run under 10.6 and earlier. */
  15. #if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_7
  16. #define HAVE_STRNLEN 1
  17. #define HAVE_WCSDUP 1
  18. #define HAVE_WCSNLEN 1
  19. #define HAVE_WCSCASECMP 1
  20. #define HAVE_WCSNCASECMP 1
  21. #endif
  22. /*
  23. * native (1) or emulated (0) toolbar
  24. */
  25. #ifndef wxOSX_USE_NATIVE_TOOLBAR
  26. #define wxOSX_USE_NATIVE_TOOLBAR 1
  27. #endif
  28. /*
  29. * leave is isFlipped and don't override
  30. */
  31. #ifndef wxOSX_USE_NATIVE_FLIPPED
  32. #define wxOSX_USE_NATIVE_FLIPPED 1
  33. #endif
  34. /*
  35. * text rendering system
  36. */
  37. #define wxOSX_USE_ATSU_TEXT 0
  38. /*
  39. * Audio System
  40. */
  41. #define wxOSX_USE_QUICKTIME 0
  42. #define wxOSX_USE_AUDIOTOOLBOX 1
  43. /*
  44. * turning off capabilities that don't work under cocoa yet
  45. */
  46. #endif
  47. /* _WX_MAC_CHKCONF_H_ */