]>
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
24 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
25 # undef wxUSE_POSTSCRIPT
26 # define wxUSE_POSTSCRIPT 1
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
33 # define wxUSE_NORLANDER_HEADERS 0
38 * All of the settings below require SEH support (__try/__catch) and can't work
41 #if !defined(_MSC_VER) && \
42 (!defined(__BORLANDC__) || __BORLANDC__ < 0x0550)
43 #undef wxUSE_ON_FATAL_EXCEPTION
44 #define wxUSE_ON_FATAL_EXCEPTION 0
46 #undef wxUSE_CRASHREPORT
47 #define wxUSE_CRASHREPORT 0
49 #undef wxUSE_STACKWALKER
50 #define wxUSE_STACKWALKER 0
51 #endif // compiler doesn't support SEH
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
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
64 # undef wxUSE_GLOBAL_MEMORY_OPERATORS
65 # define wxUSE_GLOBAL_MEMORY_OPERATORS 0
67 # undef wxUSE_DEBUG_NEW_ALWAYS
68 # define wxUSE_DEBUG_NEW_ALWAYS 0
70 /* some Cygwin versions don't have wcslen */
71 # if defined(__CYGWIN__) || defined(__CYGWIN32__)
72 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
74 # define wxUSE_WCHAR_T 0
78 #endif /* __GNUWIN32__ */
80 /* MFC duplicates these operators */
82 # undef wxUSE_GLOBAL_MEMORY_OPERATORS
83 # define wxUSE_GLOBAL_MEMORY_OPERATORS 0
85 # undef wxUSE_DEBUG_NEW_ALWAYS
86 # define wxUSE_DEBUG_NEW_ALWAYS 0
87 #endif /* wxUSE_MFC */
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
95 #if !wxUSE_OWNER_DRAWN
96 #undef wxUSE_CHECKLISTBOX
97 #define wxUSE_CHECKLISTBOX 0
102 # ifdef wxABORT_ON_CONFIG_ERROR
103 # error "wxSpinCtrl requires wxSpinButton on MSW"
105 # undef wxUSE_SPINBTN
106 # define wxUSE_SPINBTN 1
111 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
112 /* BC++ 4.0 can't compile JPEG library */
113 # undef wxUSE_LIBJPEG
114 # define wxUSE_LIBJPEG 0
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
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
129 #endif /* _WX_MSW_CHKCONF_H_ */