]>
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 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
31 #if defined(__MWERKS__)
32 #undef wxUSE_DEBUG_NEW_ALWAYS
33 #define wxUSE_DEBUG_NEW_ALWAYS 0
36 #if defined(__GNUWIN32__)
37 /* These don't work as expected for mingw32 and cygwin32 */
38 #undef wxUSE_MEMORY_TRACING
39 #define wxUSE_MEMORY_TRACING 0
41 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
42 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
44 #undef wxUSE_DEBUG_NEW_ALWAYS
45 #define wxUSE_DEBUG_NEW_ALWAYS 0
47 /* Cygwin betas don't have wcslen */
48 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
49 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
51 # define wxUSE_WCHAR_T 0
58 /* MFC duplicates these operators */
60 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
61 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
63 #undef wxUSE_DEBUG_NEW_ALWAYS
64 #define wxUSE_DEBUG_NEW_ALWAYS 0
68 #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
69 /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
70 #undef wxUSE_DRAG_AND_DROP
71 #define wxUSE_DRAG_AND_DROP 0
74 #if !wxUSE_OWNER_DRAWN
75 #undef wxUSE_CHECKLISTBOX
76 #define wxUSE_CHECKLISTBOX 0
79 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
80 /* BC++ 4.0 can't compile JPEG library */
82 #define wxUSE_LIBJPEG 0
85 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
86 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
87 #undef wxUSE_DEBUG_NEW_ALWAYS
88 #define wxUSE_DEBUG_NEW_ALWAYS 0
91 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
93 #define wxUSE_WCHAR_T 0
97 /* _WX_MSW_CHKCONF_H_ */