]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/chkconf.h
added Show/HideNativeCaret() (patch 759924)
[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 * GCC does not have SEH (__try/__catch)
29 */
30
31 #if defined(__GNUG__)
32 #undef wxUSE_ON_FATAL_EXCEPTION
33 #define wxUSE_ON_FATAL_EXCEPTION 0
34 #endif
35
36 /*
37 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
38 */
39
40 #if defined(__MWERKS__)
41 #undef wxUSE_DEBUG_NEW_ALWAYS
42 #define wxUSE_DEBUG_NEW_ALWAYS 0
43 #endif
44
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
49
50 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
51 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
52
53 #undef wxUSE_DEBUG_NEW_ALWAYS
54 #define wxUSE_DEBUG_NEW_ALWAYS 0
55
56 /* Cygwin betas don't have wcslen */
57 #if defined(__CYGWIN__) || defined(__CYGWIN32__)
58 # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
59 # undef wxUSE_WCHAR_T
60 # define wxUSE_WCHAR_T 0
61 # endif
62 #endif
63
64 #endif
65 /* __GNUWIN32__ */
66
67 /* MFC duplicates these operators */
68 #if wxUSE_MFC
69 #undef wxUSE_GLOBAL_MEMORY_OPERATORS
70 #define wxUSE_GLOBAL_MEMORY_OPERATORS 0
71
72 #undef wxUSE_DEBUG_NEW_ALWAYS
73 #define wxUSE_DEBUG_NEW_ALWAYS 0
74 #endif
75 /* wxUSE_MFC */
76
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
81 #endif
82
83 #if !wxUSE_OWNER_DRAWN
84 #undef wxUSE_CHECKLISTBOX
85 #define wxUSE_CHECKLISTBOX 0
86 #endif
87
88 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
89 /* BC++ 4.0 can't compile JPEG library */
90 #undef wxUSE_LIBJPEG
91 #define wxUSE_LIBJPEG 0
92 #endif
93
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
98 #endif
99
100 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
101 #undef wxUSE_WCHAR_T
102 #define wxUSE_WCHAR_T 0
103 #endif
104
105 #endif
106 /* _WX_MSW_CHKCONF_H_ */
107