]>
Commit | Line | Data |
---|---|---|
01ebf752 JS |
1 | /* |
2 | * Name: wx/msw/chkconf.h | |
3 | * Purpose: Compiler-specific configuration checking | |
4 | * Author: Julian Smart | |
5 | * Modified by: | |
6 | * Created: 01/02/97 | |
7 | * RCS-ID: $Id$ | |
8 | * Copyright: (c) Julian Smart | |
65571936 | 9 | * Licence: wxWindows licence |
01ebf752 JS |
10 | */ |
11 | ||
34cbe514 RN |
12 | /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */ |
13 | ||
01ebf752 JS |
14 | #ifndef _WX_MSW_CHKCONF_H_ |
15 | #define _WX_MSW_CHKCONF_H_ | |
16 | ||
17 | /* | |
18 | * disable the settings which don't work for some compilers | |
19 | */ | |
20 | ||
12bdd77c JS |
21 | /* |
22 | * If using PostScript-in-MSW in Univ, must enable PostScript | |
23 | */ | |
12bdd77c | 24 | #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT |
5e7f00a1 VZ |
25 | # undef wxUSE_POSTSCRIPT |
26 | # define wxUSE_POSTSCRIPT 1 | |
12bdd77c JS |
27 | #endif |
28 | ||
01ebf752 | 29 | #ifndef wxUSE_NORLANDER_HEADERS |
5e7f00a1 VZ |
30 | # if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))) |
31 | # define wxUSE_NORLANDER_HEADERS 1 | |
32 | # else | |
33 | # define wxUSE_NORLANDER_HEADERS 0 | |
34 | # endif | |
01ebf752 JS |
35 | #endif |
36 | ||
b3dfbbc9 | 37 | /* |
3e3a3e17 VZ |
38 | * All of the settings below require SEH support (__try/__catch) and can't work |
39 | * without it. | |
b3dfbbc9 | 40 | */ |
3e3a3e17 VZ |
41 | #if !defined(_MSC_VER) && \ |
42 | (!defined(__BORLANDC__) || __BORLANDC__ < 0x0550) | |
b3dfbbc9 MB |
43 | #undef wxUSE_ON_FATAL_EXCEPTION |
44 | #define wxUSE_ON_FATAL_EXCEPTION 0 | |
3e3a3e17 VZ |
45 | |
46 | #undef wxUSE_CRASHREPORT | |
47 | #define wxUSE_CRASHREPORT 0 | |
48 | ||
49 | #undef wxUSE_STACKWALKER | |
50 | #define wxUSE_STACKWALKER 0 | |
51 | #endif // compiler doesn't support SEH | |
b3dfbbc9 | 52 | |
5e7f00a1 | 53 | /* wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior */ |
01ebf752 JS |
54 | #if defined(__MWERKS__) |
55 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
56 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
57 | #endif | |
58 | ||
59 | #if defined(__GNUWIN32__) | |
5e7f00a1 VZ |
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 | |
01ebf752 | 69 | |
5e7f00a1 VZ |
70 | /* some Cygwin versions 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 | |
01ebf752 | 76 | #endif |
5e7f00a1 VZ |
77 | |
78 | #endif /* __GNUWIN32__ */ | |
01ebf752 JS |
79 | |
80 | /* MFC duplicates these operators */ | |
81 | #if wxUSE_MFC | |
5e7f00a1 VZ |
82 | # undef wxUSE_GLOBAL_MEMORY_OPERATORS |
83 | # define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
01ebf752 | 84 | |
5e7f00a1 VZ |
85 | # undef wxUSE_DEBUG_NEW_ALWAYS |
86 | # define wxUSE_DEBUG_NEW_ALWAYS 0 | |
87 | #endif /* wxUSE_MFC */ | |
01ebf752 JS |
88 | |
89 | #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) | |
90 | /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */ | |
91 | #undef wxUSE_DRAG_AND_DROP | |
92 | #define wxUSE_DRAG_AND_DROP 0 | |
93 | #endif | |
94 | ||
95 | #if !wxUSE_OWNER_DRAWN | |
96 | #undef wxUSE_CHECKLISTBOX | |
97 | #define wxUSE_CHECKLISTBOX 0 | |
98 | #endif | |
99 | ||
0e871ad0 WS |
100 | #if wxUSE_SPINCTRL |
101 | # if !wxUSE_SPINBTN | |
102 | # ifdef wxABORT_ON_CONFIG_ERROR | |
103 | # error "wxSpinCtrl requires wxSpinButton on MSW" | |
104 | # else | |
105 | # undef wxUSE_SPINBTN | |
106 | # define wxUSE_SPINBTN 1 | |
107 | # endif | |
108 | # endif | |
109 | #endif | |
110 | ||
01ebf752 | 111 | #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) |
5e7f00a1 VZ |
112 | /* BC++ 4.0 can't compile JPEG library */ |
113 | # undef wxUSE_LIBJPEG | |
114 | # define wxUSE_LIBJPEG 0 | |
01ebf752 JS |
115 | #endif |
116 | ||
117 | /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */ | |
118 | #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL)) | |
5e7f00a1 VZ |
119 | # undef wxUSE_DEBUG_NEW_ALWAYS |
120 | # define wxUSE_DEBUG_NEW_ALWAYS 0 | |
01ebf752 JS |
121 | #endif |
122 | ||
5e7f00a1 | 123 | /* Early Watcom version don't have good enough wide char support */ |
01ebf752 | 124 | #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200) |
5e7f00a1 VZ |
125 | # undef wxUSE_WCHAR_T |
126 | # define wxUSE_WCHAR_T 0 | |
8175d025 WS |
127 | #endif |
128 | ||
5e7f00a1 | 129 | #endif /* _WX_MSW_CHKCONF_H_ */ |
01ebf752 | 130 |