]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/features.h
3 * Purpose: test macros for the features which might be available in some
4 * wxWidgets ports but not others
5 * Author: Vadim Zeitlin
6 * Modified by: Ryan Norton (Converted to C)
9 * Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwidgets.org>
10 * Licence: wxWindows licence
13 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
15 #ifndef _WX_FEATURES_H_
16 #define _WX_FEATURES_H_
18 /* radio menu items are currently only implemented in wxGTK and wxMSW */
19 #if defined(__WXGTK__) || defined(__WXMSW__)
20 #define wxHAS_RADIO_MENU_ITEMS
22 #undef wxHAS_RADIO_MENU_ITEMS
25 /* the raw keyboard codes are generated under wxGTK and wxMSW only */
26 #if defined(__WXGTK__) || defined(__WXMSW__)
27 #define wxHAS_RAW_KEY_CODES
29 #undef wxHAS_RAW_KEY_CODES
32 /* taskbar is only implemented in the major ports */
33 #if defined(__WXMSW__) || \
34 defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXX11__) || defined(__DARWIN__)
35 #define wxHAS_TASK_BAR_ICON
37 #undef wxHAS_TASK_BAR_ICON
40 /* wxIconLocation appeared in the middle of 2.5.0 so it's handy to have a */
41 /* separate define for it */
42 #define wxHAS_ICON_LOCATION
44 /* same for wxCrashReport */
46 #define wxHAS_CRASH_REPORT
48 #undef wxHAS_CRASH_REPORT
51 /* wxRE_ADVANCED is not always available, depending on regex library used
52 * (it's unavailable only if compiling via configure against system library) */
53 #ifndef WX_NO_REGEX_ADVANCED
54 #define wxHAS_REGEX_ADVANCED
56 #undef wxHAS_REGEX_ADVANCED
59 #endif /* _WX_FEATURES_H_ */