]>
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 #ifndef _WX_MSW_CHKCONF_H_
13 #define _WX_MSW_CHKCONF_H_
16 * disable the settings which don't work for some compilers
20 * If using PostScript-in-MSW in Univ, must enable PostScript
23 #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
24 #undef wxUSE_POSTSCRIPT
25 #define wxUSE_POSTSCRIPT 1
28 #ifndef wxUSE_NORLANDER_HEADERS
29 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
30 # define wxUSE_NORLANDER_HEADERS 1
32 # define wxUSE_NORLANDER_HEADERS 0
37 * GCC does not have SEH (__try/__catch)
41 #undef wxUSE_ON_FATAL_EXCEPTION
42 #define wxUSE_ON_FATAL_EXCEPTION 0
46 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
49 #if defined(__MWERKS__)
50 #undef wxUSE_DEBUG_NEW_ALWAYS
51 #define wxUSE_DEBUG_NEW_ALWAYS 0
54 #if defined(__GNUWIN32__)
55 /* These don't work as expected for mingw32 and cygwin32 */
56 #undef wxUSE_MEMORY_TRACING
57 #define wxUSE_MEMORY_TRACING 0
59 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
60 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
62 #undef wxUSE_DEBUG_NEW_ALWAYS
63 #define wxUSE_DEBUG_NEW_ALWAYS 0
65 /* Cygwin betas don't have wcslen */
66 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
67 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
69 # define wxUSE_WCHAR_T 0
76 /* MFC duplicates these operators */
78 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
79 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
81 #undef wxUSE_DEBUG_NEW_ALWAYS
82 #define wxUSE_DEBUG_NEW_ALWAYS 0
86 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
87 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
88 #undef wxUSE_DRAG_AND_DROP
89 #define wxUSE_DRAG_AND_DROP 0
92 #if !wxUSE_OWNER_DRAWN
93 #undef wxUSE_CHECKLISTBOX
94 #define wxUSE_CHECKLISTBOX 0
97 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
98 /* BC++ 4.0 can't compile JPEG library */
100 #define wxUSE_LIBJPEG 0
103 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
104 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
105 #undef wxUSE_DEBUG_NEW_ALWAYS
106 #define wxUSE_DEBUG_NEW_ALWAYS 0
109 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
111 #define wxUSE_WCHAR_T 0
115 /* _WX_MSW_CHKCONF_H_ */