]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/chkconf.h
fixing CW 8 builds for all targets
[wxWidgets.git] / include / wx / msw / chkconf.h
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
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_MSW_CHKCONF_H_
15 #define _WX_MSW_CHKCONF_H_
16
17 /*
18 * disable the settings which don't work for some compilers
19 */
20
21 /*
22 * If using PostScript-in-MSW in Univ, must enable PostScript
23 */
24 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
25 # undef wxUSE_POSTSCRIPT
26 # define wxUSE_POSTSCRIPT 1
27 #endif
28
29 #ifndef wxUSE_NORLANDER_HEADERS
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
35 #endif
36
37 /*
38 * All of the settings below require SEH support (__try/__catch) and can't work
39 * without it.
40 */
41 #if !defined(_MSC_VER) && \
42 (!defined(__BORLANDC__) || __BORLANDC__ < 0x0550)
43 #undef wxUSE_ON_FATAL_EXCEPTION
44 #define wxUSE_ON_FATAL_EXCEPTION 0
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
52
53 /* wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior */
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 /* 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
76 #endif
77
78 #endif /* __GNUWIN32__ */
79
80 /* MFC duplicates these operators */
81 #if wxUSE_MFC
82 # undef wxUSE_GLOBAL_MEMORY_OPERATORS
83 # define wxUSE_GLOBAL_MEMORY_OPERATORS 0
84
85 # undef wxUSE_DEBUG_NEW_ALWAYS
86 # define wxUSE_DEBUG_NEW_ALWAYS 0
87 #endif /* wxUSE_MFC */
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
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
111 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
112 /* BC++ 4.0 can't compile JPEG library */
113 # undef wxUSE_LIBJPEG
114 # define wxUSE_LIBJPEG 0
115 #endif
116
117 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
118 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
119 # undef wxUSE_DEBUG_NEW_ALWAYS
120 # define wxUSE_DEBUG_NEW_ALWAYS 0
121 #endif
122
123 /* Early Watcom version don't have good enough wide char support */
124 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
125 # undef wxUSE_WCHAR_T
126 # define wxUSE_WCHAR_T 0
127 #endif
128
129 #endif /* _WX_MSW_CHKCONF_H_ */
130