]>
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
19 #ifndef wxUSE_NORLANDER_HEADERS
20 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
21 # define wxUSE_NORLANDER_HEADERS 1
23 # define wxUSE_NORLANDER_HEADERS 0
28 * GCC does not have SEH (__try/__catch)
32 #undef wxUSE_ON_FATAL_EXCEPTION
33 #define wxUSE_ON_FATAL_EXCEPTION 0
37 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
40 #if defined(__MWERKS__)
41 #undef wxUSE_DEBUG_NEW_ALWAYS
42 #define wxUSE_DEBUG_NEW_ALWAYS 0
45 #if defined(__GNUWIN32__)
46 /* These don't work as expected for mingw32 and cygwin32 */
47 #undef wxUSE_MEMORY_TRACING
48 #define wxUSE_MEMORY_TRACING 0
50 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
51 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
53 #undef wxUSE_DEBUG_NEW_ALWAYS
54 #define wxUSE_DEBUG_NEW_ALWAYS 0
56 /* Cygwin betas don't have wcslen */
57 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
58 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
60 # define wxUSE_WCHAR_T 0
67 /* MFC duplicates these operators */
69 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
70 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
72 #undef wxUSE_DEBUG_NEW_ALWAYS
73 #define wxUSE_DEBUG_NEW_ALWAYS 0
77 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
78 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
79 #undef wxUSE_DRAG_AND_DROP
80 #define wxUSE_DRAG_AND_DROP 0
83 #if !wxUSE_OWNER_DRAWN
84 #undef wxUSE_CHECKLISTBOX
85 #define wxUSE_CHECKLISTBOX 0
88 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
89 /* BC++ 4.0 can't compile JPEG library */
91 #define wxUSE_LIBJPEG 0
94 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
95 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
96 #undef wxUSE_DEBUG_NEW_ALWAYS
97 #define wxUSE_DEBUG_NEW_ALWAYS 0
100 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
102 #define wxUSE_WCHAR_T 0
106 /* _WX_MSW_CHKCONF_H_ */