]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/chkconf.h
added wxIsDebuggerRunning() (which is going to replace the mess in log.cpp)
[wxWidgets.git] / include / wx / msw / chkconf.h
1 /*
2 * Name: wx/msw/chkconf.h
3 * Purpose: Compiler-specific configuration checking
4 * Author: Julian Smart
5 * Modified by:
6 * Created: 01/02/97
7 * RCS-ID: $Id$
8 * Copyright: (c) Julian Smart
9 * Licence: wxWindows licence
10 */
11
12 #ifndef _WX_MSW_CHKCONF_H_
13 #define _WX_MSW_CHKCONF_H_
14
15 /*
16 * disable the settings which don't work for some compilers
17 */
18
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
22 #else
23 # define wxUSE_NORLANDER_HEADERS 0
24 #endif
25 #endif
26
27 /*
28 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
29 */
30
31 #if defined(__MWERKS__)
32 #undef wxUSE_DEBUG_NEW_ALWAYS
33 #define wxUSE_DEBUG_NEW_ALWAYS 0
34 #endif
35
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
40
41 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
42 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
43
44 #undef wxUSE_DEBUG_NEW_ALWAYS
45 #define wxUSE_DEBUG_NEW_ALWAYS 0
46
47 /* Cygwin betas don't have wcslen */
48 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
49 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
50 # undef wxUSE_WCHAR_T
51 # define wxUSE_WCHAR_T 0
52 # endif
53 #endif
54
55 #endif
56 /* __GNUWIN32__ */
57
58 /* MFC duplicates these operators */
59 #if wxUSE_MFC
60 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
61 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
62
63 #undef wxUSE_DEBUG_NEW_ALWAYS
64 #define wxUSE_DEBUG_NEW_ALWAYS 0
65 #endif
66 /* wxUSE_MFC */
67
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
72 #endif
73
74 #if !wxUSE_OWNER_DRAWN
75 #undef wxUSE_CHECKLISTBOX
76 #define wxUSE_CHECKLISTBOX 0
77 #endif
78
79 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
80 /* BC++ 4.0 can't compile JPEG library */
81 #undef wxUSE_LIBJPEG
82 #define wxUSE_LIBJPEG 0
83 #endif
84
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
89 #endif
90
91 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
92 #undef wxUSE_WCHAR_T
93 #define wxUSE_WCHAR_T 0
94 #endif
95
96 #endif
97 /* _WX_MSW_CHKCONF_H_ */
98