]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/chkconf.h
blind fix for GCC compilation when #pragmas are honored
[wxWidgets.git] / include / wx / palmos / chkconf.h
1 /*
2 * Name: wx/palmos/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: William Osborne
5 * Modified by:
6 * Created: 10/13/04
7 * RCS-ID: $Id:
8 * Copyright: (c) William Osborne
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_PALMOS_CHKCONF_H_
15 #define _WX_PALMOS_CHKCONF_H_
16
17 #if WXWIN_COMPATIBILITY_2_4
18 #error "wxPalmOS port was introduced after 2.4.X"
19 #endif
20
21 /*
22 * disable the settings which don't work for some compilers
23 */
24
25 /*
26 * If using PostScript-in-MSW in Univ, must enable PostScript
27 */
28 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
29 #undef wxUSE_POSTSCRIPT
30 #define wxUSE_POSTSCRIPT 1
31 #endif
32
33 #ifndef wxUSE_NORLANDER_HEADERS
34 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
35 # define wxUSE_NORLANDER_HEADERS 1
36 #else
37 # define wxUSE_NORLANDER_HEADERS 0
38 #endif
39 #endif
40
41 /*
42 * GCC does not have SEH (__try/__catch)
43 */
44
45 #if defined(__GNUG__)
46 #undef wxUSE_ON_FATAL_EXCEPTION
47 #define wxUSE_ON_FATAL_EXCEPTION 0
48 #endif
49
50 /*
51 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
52 */
53
54 #if defined(__MWERKS__)
55 #undef wxUSE_DEBUG_NEW_ALWAYS
56 #define wxUSE_DEBUG_NEW_ALWAYS 0
57 #endif
58
59 #if defined(__GNUWIN32__)
60 /* These don't work as expected for mingw32 and cygwin32 */
61 #undef wxUSE_MEMORY_TRACING
62 #define wxUSE_MEMORY_TRACING 0
63
64 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
65 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
66
67 #undef wxUSE_DEBUG_NEW_ALWAYS
68 #define wxUSE_DEBUG_NEW_ALWAYS 0
69
70 /* Cygwin betas don't have wcslen */
71 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
72 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
73 # undef wxUSE_WCHAR_T
74 # define wxUSE_WCHAR_T 0
75 # endif
76 #endif
77
78 #endif
79 /* __GNUWIN32__ */
80
81 /* MFC duplicates these operators */
82 #if wxUSE_MFC
83 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
84 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
85
86 #undef wxUSE_DEBUG_NEW_ALWAYS
87 #define wxUSE_DEBUG_NEW_ALWAYS 0
88 #endif
89 /* wxUSE_MFC */
90
91 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
92 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
93 #undef wxUSE_DRAG_AND_DROP
94 #define wxUSE_DRAG_AND_DROP 0
95 #endif
96
97 #if !wxUSE_OWNER_DRAWN
98 #undef wxUSE_CHECKLISTBOX
99 #define wxUSE_CHECKLISTBOX 0
100 #endif
101
102 #endif
103 /* _WX_PALMOS_CHKCONF_H_ */
104