]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/chkconf.h
2 * Name: wx/msw/chkconf.h
3 * Purpose: Compiler-specific configuration checking
8 * Copyright: (c) Julian Smart
9 * Licence: wxWindows licence
12 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
14 #ifndef _WX_MSW_CHKCONF_H_
15 #define _WX_MSW_CHKCONF_H_
18 * disable the settings which don't work for some compilers
22 * If using PostScript-in-MSW in Univ, must enable PostScript
25 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
26 #undef wxUSE_POSTSCRIPT
27 #define wxUSE_POSTSCRIPT 1
30 #ifndef wxUSE_NORLANDER_HEADERS
31 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
32 # define wxUSE_NORLANDER_HEADERS 1
34 # define wxUSE_NORLANDER_HEADERS 0
39 * All of the settings below require SEH support (__try/__catch) and can't work
42 #if !defined(_MSC_VER) && \
43 (!defined(__BORLANDC__) || __BORLANDC__ < 0x0550)
44 #undef wxUSE_ON_FATAL_EXCEPTION
45 #define wxUSE_ON_FATAL_EXCEPTION 0
47 #undef wxUSE_CRASHREPORT
48 #define wxUSE_CRASHREPORT 0
50 #undef wxUSE_STACKWALKER
51 #define wxUSE_STACKWALKER 0
52 #endif // compiler doesn't support SEH
55 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
58 #if defined(__MWERKS__)
59 #undef wxUSE_DEBUG_NEW_ALWAYS
60 #define wxUSE_DEBUG_NEW_ALWAYS 0
63 #if defined(__GNUWIN32__)
64 /* These don't work as expected for mingw32 and cygwin32 */
65 #undef wxUSE_MEMORY_TRACING
66 #define wxUSE_MEMORY_TRACING 0
68 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
69 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
71 #undef wxUSE_DEBUG_NEW_ALWAYS
72 #define wxUSE_DEBUG_NEW_ALWAYS 0
74 /* Cygwin betas don't have wcslen */
75 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
76 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
78 # define wxUSE_WCHAR_T 0
85 /* MFC duplicates these operators */
87 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
88 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
90 #undef wxUSE_DEBUG_NEW_ALWAYS
91 #define wxUSE_DEBUG_NEW_ALWAYS 0
95 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
96 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
97 #undef wxUSE_DRAG_AND_DROP
98 #define wxUSE_DRAG_AND_DROP 0
101 #if !wxUSE_OWNER_DRAWN
102 #undef wxUSE_CHECKLISTBOX
103 #define wxUSE_CHECKLISTBOX 0
108 # ifdef wxABORT_ON_CONFIG_ERROR
109 # error "wxSpinCtrl requires wxSpinButton on MSW"
111 # undef wxUSE_SPINBTN
112 # define wxUSE_SPINBTN 1
117 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
118 /* BC++ 4.0 can't compile JPEG library */
120 #define wxUSE_LIBJPEG 0
123 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
124 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
125 #undef wxUSE_DEBUG_NEW_ALWAYS
126 #define wxUSE_DEBUG_NEW_ALWAYS 0
129 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
131 #define wxUSE_WCHAR_T 0
134 /* Media not supported in eVC3 */
135 #if defined(_WIN32_WCE)
136 #if (_WIN32_WCE < 400)
137 #undef wxUSE_DIRECTSHOW
138 #undef wxUSE_MEDIACTRL
139 #define wxUSE_DIRECTSHOW 0
140 #define wxUSE_MEDIACTRL 0
144 /* Disable controls for pointing devices */
145 #if defined(__SMARTPHONE__)
146 #undef wxUSE_NOTEBOOK
147 #undef wxUSE_LISTBOOK
148 #define wxUSE_NOTEBOOK 0
149 #define wxUSE_LISTBOOK 0
153 /* _WX_MSW_CHKCONF_H_ */