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