]>
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 * GCC does not have SEH (__try/__catch)
43 #undef wxUSE_ON_FATAL_EXCEPTION
44 #define wxUSE_ON_FATAL_EXCEPTION 0
48 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
51 #if defined(__MWERKS__)
52 #undef wxUSE_DEBUG_NEW_ALWAYS
53 #define wxUSE_DEBUG_NEW_ALWAYS 0
56 #if defined(__GNUWIN32__)
57 /* These don't work as expected for mingw32 and cygwin32 */
58 #undef wxUSE_MEMORY_TRACING
59 #define wxUSE_MEMORY_TRACING 0
61 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
62 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
64 #undef wxUSE_DEBUG_NEW_ALWAYS
65 #define wxUSE_DEBUG_NEW_ALWAYS 0
67 /* Cygwin betas don't have wcslen */
68 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
69 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
71 # define wxUSE_WCHAR_T 0
78 /* MFC duplicates these operators */
80 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
81 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
83 #undef wxUSE_DEBUG_NEW_ALWAYS
84 #define wxUSE_DEBUG_NEW_ALWAYS 0
88 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
89 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
90 #undef wxUSE_DRAG_AND_DROP
91 #define wxUSE_DRAG_AND_DROP 0
94 #if !wxUSE_OWNER_DRAWN
95 #undef wxUSE_CHECKLISTBOX
96 #define wxUSE_CHECKLISTBOX 0
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxSpinCtrl requires wxSpinButton on MSW"
104 # undef wxUSE_SPINBTN
105 # define wxUSE_SPINBTN 1
110 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
111 /* BC++ 4.0 can't compile JPEG library */
113 #define wxUSE_LIBJPEG 0
116 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
117 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
118 #undef wxUSE_DEBUG_NEW_ALWAYS
119 #define wxUSE_DEBUG_NEW_ALWAYS 0
122 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
124 #define wxUSE_WCHAR_T 0
127 /* Media not supported in eVC3 */
128 #if defined(_WIN32_WCE)
129 #if (_WIN32_WCE < 400)
130 #undef wxUSE_DIRECTSHOW
131 #undef wxUSE_MEDIACTRL
132 #define wxUSE_DIRECTSHOW 0
133 #define wxUSE_MEDIACTRL 0
138 /* _WX_MSW_CHKCONF_H_ */