]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/chkconf.h
added code for hardware platform detection (__INTEL__, __POWERPC__, ... which were...
[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 /* THIS IS A C FILE, DON'T USE C++ FEATURES (IN PARTICULAR COMMENTS) IN IT */
13
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
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
30 #ifndef wxUSE_NORLANDER_HEADERS
31 #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))))
32 # define wxUSE_NORLANDER_HEADERS 1
33 #else
34 # define wxUSE_NORLANDER_HEADERS 0
35 #endif
36 #endif
37
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
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 wxUSE_SPINCTRL
100 # if !wxUSE_SPINBTN
101 # ifdef wxABORT_ON_CONFIG_ERROR
102 # error "wxSpinCtrl requires wxSpinButton on MSW"
103 # else
104 # undef wxUSE_SPINBTN
105 # define wxUSE_SPINBTN 1
106 # endif
107 # endif
108 #endif
109
110 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
111 /* BC++ 4.0 can't compile JPEG library */
112 #undef wxUSE_LIBJPEG
113 #define wxUSE_LIBJPEG 0
114 #endif
115
116 /* wxUSE_DEBUG_NEW_ALWAYS = 1 not compatible with BC++ in DLL mode */
117 #if defined(__BORLANDC__) && (defined(WXMAKINGDLL) || defined(WXUSINGDLL))
118 #undef wxUSE_DEBUG_NEW_ALWAYS
119 #define wxUSE_DEBUG_NEW_ALWAYS 0
120 #endif
121
122 #if defined(__WXMSW__) && (defined(__WATCOMC__) && __WATCOMC__ < 1200)
123 #undef wxUSE_WCHAR_T
124 #define wxUSE_WCHAR_T 0
125 #endif
126
127 /* Media not supported in eVC3 */
128 #if defined(_WIN32_WCE)
129 #if (_WIN32_WCE < 400)
130 #undef wxUSE_DIRECTSHOW
131 #undef wxUSE_MEDIACTRL
132 #define wxUSE_DIRECTSHOW 0
133 #define wxUSE_MEDIACTRL 0
134 #endif
135 #endif
136
137 /* Disable controls for pointing devices */
138 #if defined(__SMARTPHONE__)
139 #undef wxUSE_NOTEBOOK
140 #undef wxUSE_LISTBOOK
141 #define wxUSE_NOTEBOOK 0
142 #define wxUSE_LISTBOOK 0
143 #endif
144
145 #endif
146 /* _WX_MSW_CHKCONF_H_ */
147