]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Name: wx/palmos/chkconf.h | |
3 | * Purpose: Compiler-specific configuration checking | |
4 | * Author: William Osborne - minimal working wxPalmOS port | |
5 | * Modified by: | |
6 | * Created: 10/13/04 | |
7 | * RCS-ID: $Id$ | |
8 | * Copyright: (c) William Osborne | |
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_PALMOS_CHKCONF_H_ | |
15 | #define _WX_PALMOS_CHKCONF_H_ | |
16 | ||
17 | #if WXWIN_COMPATIBILITY_2_4 | |
18 | #error "wxPalmOS port was introduced after 2.4.X" | |
19 | #endif | |
20 | ||
21 | #ifdef wxUSE_FILECONFIG | |
22 | #undef wxUSE_FILECONFIG | |
23 | #endif | |
24 | #define wxUSE_FILECONFIG 0 | |
25 | ||
26 | /* | |
27 | * disable the settings which don't work for some compilers | |
28 | */ | |
29 | ||
30 | /* | |
31 | * If using PostScript-in-MSW in Univ, must enable PostScript | |
32 | */ | |
33 | #if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT | |
34 | #undef wxUSE_POSTSCRIPT | |
35 | #define wxUSE_POSTSCRIPT 1 | |
36 | #endif | |
37 | ||
38 | #ifndef wxUSE_NORLANDER_HEADERS | |
39 | #if (defined(__WATCOMC__) && (__WATCOMC__ >= 1200)) || defined(__WINE__) || ((defined(__MINGW32__) || defined(__CYGWIN__)) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))) | |
40 | # define wxUSE_NORLANDER_HEADERS 1 | |
41 | #else | |
42 | # define wxUSE_NORLANDER_HEADERS 0 | |
43 | #endif | |
44 | #endif | |
45 | ||
46 | /* | |
47 | * GCC does not have SEH (__try/__catch) | |
48 | */ | |
49 | ||
50 | #if defined(__GNUG__) | |
51 | #undef wxUSE_ON_FATAL_EXCEPTION | |
52 | #define wxUSE_ON_FATAL_EXCEPTION 0 | |
53 | #endif | |
54 | ||
55 | /* | |
56 | * wxUSE_DEBUG_NEW_ALWAYS doesn't work with CodeWarrior | |
57 | */ | |
58 | ||
59 | #if defined(__MWERKS__) | |
60 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
61 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
62 | #endif | |
63 | ||
64 | #if defined(__GNUWIN32__) | |
65 | /* These don't work as expected for mingw32 and cygwin32 */ | |
66 | #undef wxUSE_MEMORY_TRACING | |
67 | #define wxUSE_MEMORY_TRACING 0 | |
68 | ||
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 | ||
75 | /* Cygwin betas don't have wcslen */ | |
76 | #if defined(__CYGWIN__) || defined(__CYGWIN32__) | |
77 | # if ! ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95))) | |
78 | # undef wxUSE_WCHAR_T | |
79 | # define wxUSE_WCHAR_T 0 | |
80 | # endif | |
81 | #endif | |
82 | ||
83 | #endif | |
84 | /* __GNUWIN32__ */ | |
85 | ||
86 | /* MFC duplicates these operators */ | |
87 | #if wxUSE_MFC | |
88 | #undef wxUSE_GLOBAL_MEMORY_OPERATORS | |
89 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 0 | |
90 | ||
91 | #undef wxUSE_DEBUG_NEW_ALWAYS | |
92 | #define wxUSE_DEBUG_NEW_ALWAYS 0 | |
93 | #endif | |
94 | /* wxUSE_MFC */ | |
95 | ||
96 | #if (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) | |
97 | /* GnuWin32 doesn't have appropriate headers for e.g. IUnknown. */ | |
98 | #undef wxUSE_DRAG_AND_DROP | |
99 | #define wxUSE_DRAG_AND_DROP 0 | |
100 | #endif | |
101 | ||
102 | #if !wxUSE_OWNER_DRAWN | |
103 | #undef wxUSE_CHECKLISTBOX | |
104 | #define wxUSE_CHECKLISTBOX 0 | |
105 | #endif | |
106 | ||
107 | #endif | |
108 | /* _WX_PALMOS_CHKCONF_H_ */ | |
109 |