]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/chkconf.h
Fix wrong tab order in wxAuiNotebook after dragging.
[wxWidgets.git] / include / wx / osx / chkconf.h
1 /*
2 * Name: wx/osx/chkconf.h
3 * Purpose: Mac-specific config settings checks
4 * Author: Vadim Zeitlin
5 * Modified by:
6 * Created: 2005-04-05 (extracted from wx/chkconf.h)
7 * RCS-ID: $Id$
8 * Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwidgets.org>
9 * Licence: wxWindows licence
10 */
11
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
14 #ifndef _WX_OSX_CHKCONF_H_
15 #define _WX_OSX_CHKCONF_H_
16
17 /*
18 * check graphics context option, must be on for every os x platform
19 * we only use core graphics now on all builds, try to catch attempts
20 * to configure the build otherwise and give error messages
21 */
22
23 #if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
24 ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
25 # error "OS X builds use CoreGraphics in this wx version, you cannot turn back to QuickDraw completely"
26 #endif
27
28 /*
29 * using mixins of cocoa functionality
30 */
31
32 #ifdef __WXOSX_COCOA__
33 #define wxOSX_USE_COCOA 1
34 #else
35 #define wxOSX_USE_COCOA 0
36 #endif
37
38 #ifdef __WXOSX_CARBON__
39 #define wxOSX_USE_CARBON 1
40 #else
41 #define wxOSX_USE_CARBON 0
42 #endif
43
44 /*
45 * setting flags according to the platform
46 */
47
48 #ifdef __LP64__
49 #if wxOSX_USE_COCOA == 0
50 #undef wxOSX_USE_COCOA
51 #define wxOSX_USE_COCOA 1
52 #endif
53 #if wxOSX_USE_CARBON
54 #error "Carbon does not support 64bit"
55 #endif
56 #define wxOSX_USE_IPHONE 0
57 #else
58 #ifdef __WXOSX_IPHONE__
59 #define wxOSX_USE_IPHONE 1
60 #else
61 #define wxOSX_USE_IPHONE 0
62 #endif
63 #endif
64
65 /*
66 * combination flags
67 */
68
69 #if wxOSX_USE_COCOA || wxOSX_USE_CARBON
70 #define wxOSX_USE_COCOA_OR_CARBON 1
71 #else
72 #define wxOSX_USE_COCOA_OR_CARBON 0
73 #endif
74
75 #if wxOSX_USE_COCOA || wxOSX_USE_IPHONE
76 #define wxOSX_USE_COCOA_OR_IPHONE 1
77 #else
78 #define wxOSX_USE_COCOA_OR_IPHONE 0
79 #endif
80
81 #if wxOSX_USE_IPHONE
82 #include "wx/osx/iphone/chkconf.h"
83 #elif wxOSX_USE_CARBON
84 #include "wx/osx/carbon/chkconf.h"
85 #elif wxOSX_USE_COCOA
86 #include "wx/osx/cocoa/chkconf.h"
87 #endif
88
89 #endif /* _WX_OSX_CHKCONF_H_ */