]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/chkconf.h
Applied notebook font patch.
[wxWidgets.git] / include / wx / msw / chkconf.h
CommitLineData
01ebf752
JS
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
34cbe514
RN
12/* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
01ebf752
JS
14#ifndef _WX_MSW_CHKCONF_H_
15#define _WX_MSW_CHKCONF_H_
16
17/*
18 * disable the settings which don't work for some compilers
19 */
20
12bdd77c
JS
21/*
22 * If using PostScript-in-MSW in Univ, must enable PostScript
23 */
24
25#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
26#undef wxUSE_POSTSCRIPT
27#define wxUSE_POSTSCRIPT 1
28#endif
29
01ebf752 30#ifndef wxUSE_NORLANDER_HEADERS
cd2a4e16 31#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
01ebf752
JS
32# define wxUSE_NORLANDER_HEADERS 1
33#else
34# define wxUSE_NORLANDER_HEADERS 0
35#endif
36#endif
37
b3dfbbc9
MB
38/*
39 * GCC does not have SEH (__try/__catch)
40 */
41
42#if defined(__GNUG__)
43 #undef wxUSE_ON_FATAL_EXCEPTION
44 #define wxUSE_ON_FATAL_EXCEPTION 0
45#endif
46
01ebf752
JS
47/*
48 * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior
49 */
50
51#if defined(__MWERKS__)
52 #undef wxUSE_DEBUG_NEW_ALWAYS
53 #define wxUSE_DEBUG_NEW_ALWAYS 0
54#endif
55
56#if defined(__GNUWIN32__)
57/* These don't work as expected for mingw32 and cygwin32 */
58#undef wxUSE_MEMORY_TRACING
59#define wxUSE_MEMORY_TRACING 0
60
61#undef wxUSE_GLOBAL_MEMORY_OPERATORS
62#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
63
64#undef wxUSE_DEBUG_NEW_ALWAYS
65#define wxUSE_DEBUG_NEW_ALWAYS 0
66
67/* Cygwin betas don't have wcslen */
68#if defined(__CYGWIN__) || defined(__CYGWIN32__)
69# if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
70# undef wxUSE_WCHAR_T
71# define wxUSE_WCHAR_T 0
72# endif
73#endif
74
75#endif
76 /* __GNUWIN32__ */
77
78/* MFC duplicates these operators */
79#if wxUSE_MFC
80#undef wxUSE_GLOBAL_MEMORY_OPERATORS
81#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
82
83#undef wxUSE_DEBUG_NEW_ALWAYS
84#define wxUSE_DEBUG_NEW_ALWAYS 0
85#endif
86 /* wxUSE_MFC */
87
88#if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS)
89/* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */
90#undef wxUSE_DRAG_AND_DROP
91#define wxUSE_DRAG_AND_DROP 0
92#endif
93
94#if !wxUSE_OWNER_DRAWN
95#undef wxUSE_CHECKLISTBOX
96#define wxUSE_CHECKLISTBOX 0
97#endif
98
99#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
100/* BC++ 4.0 can't compile JPEG library */
101#undef wxUSE_LIBJPEG
102#define wxUSE_LIBJPEG 0
103#endif
104
105/* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
106#if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
107#undef wxUSE_DEBUG_NEW_ALWAYS
108#define wxUSE_DEBUG_NEW_ALWAYS 0
109#endif
110
111#if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
112#undef wxUSE_WCHAR_T
113#define wxUSE_WCHAR_T 0
114#endif
115
116#endif
117 /* _WX_MSW_CHKCONF_H_ */
118