]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/chkconf.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / osx / chkconf.h
CommitLineData
5c6eb3a8 1/*
fe1a36a7 2 * Name: wx/osx/chkconf.h
5c6eb3a8
SC
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
fe1a36a7
SC
14#ifndef _WX_OSX_CHKCONF_H_
15#define _WX_OSX_CHKCONF_H_
16
fe1a36a7
SC
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 */
03647350 22
382c4ade
VZ
23#if wxUSE_GUI && (!wxUSE_GRAPHICS_CONTEXT || \
24 ( defined( wxMAC_USE_CORE_GRAPHICS ) && !wxMAC_USE_CORE_GRAPHICS ))
fe1a36a7
SC
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 */
03647350 31
935e6c7d
SC
32#ifdef __WXOSX_COCOA__
33 #define wxOSX_USE_COCOA 1
34#else
fe1a36a7
SC
35 #define wxOSX_USE_COCOA 0
36#endif
37
935e6c7d
SC
38#ifdef __WXOSX_CARBON__
39 #define wxOSX_USE_CARBON 1
40#else
41 #define wxOSX_USE_CARBON 0
42#endif
43
fe1a36a7
SC
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
490315f9
SC
53 #if wxOSX_USE_CARBON
54 #error "Carbon does not support 64bit"
55 #endif
fe1a36a7 56 #define wxOSX_USE_IPHONE 0
5c6eb3a8 57#else
fe1a36a7 58 #ifdef __WXOSX_IPHONE__
fe1a36a7
SC
59 #define wxOSX_USE_IPHONE 1
60 #else
61 #define wxOSX_USE_IPHONE 0
fe1a36a7 62 #endif
5c6eb3a8 63#endif
fe1a36a7
SC
64
65/*
66 * combination flags
67 */
03647350 68
fe1a36a7
SC
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
e78c47e3 89#endif /* _WX_OSX_CHKCONF_H_ */