]>
Commit | Line | Data |
---|---|---|
17069255 SC |
1 | #define MSL_USE_PRECOMPILED_HEADERS 1 |
2 | ||
3 | #if !defined( __MWERKS__ ) | |
4 | #error "this file is only for builds with Metrowerks CodeWarrior" | |
5 | #endif | |
6 | ||
7 | #define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition | |
8 | ||
d015713e SC |
9 | #if __MWERKS__ >= 0x2400 |
10 | #pragma old_argmatch on | |
11 | #endif | |
12 | ||
17069255 SC |
13 | #if (__MWERKS__ < 0x0900) || macintosh |
14 | #define __MAC__ | |
15 | #define __WXMAC__ | |
519cb848 SC |
16 | #if TARGET_CARBON |
17 | #define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/ | |
a02bb143 SC |
18 | #include "MacHeaders.c" |
19 | /* | |
20 | #define USE_PRECOMPILED_MAC_HEADERS 0 | |
21 | #ifdef __cplusplus | |
519cb848 SC |
22 | #include <MacHeadersPPCX++> |
23 | #else | |
24 | #include <MacHeadersPPCX> | |
25 | #endif | |
a02bb143 SC |
26 | */ |
27 | #else | |
28 | #define USE_PRECOMPILED_MAC_HEADERS 1 /*Set to 0 if you don't want to use precompiled MacHeaders*/ | |
29 | #endif | |
17069255 SC |
30 | // automatically includes MacHeaders |
31 | #elif (__MWERKS__ >= 0x0900) && __INTEL__ | |
32 | #define __WXMSW__ | |
33 | #define __WINDOWS__ | |
34 | #define __WIN95__ | |
35 | #define STRICT | |
36 | #define NOMINMAX | |
37 | #elif __BEOS__ | |
38 | #include <ansi_prefix.be.h> | |
39 | #include <Be.h> | |
40 | #else | |
41 | #error unknown MW compiler | |
42 | #endif | |
43 | ||
44 | #ifdef __WXMSW__ | |
45 | #include <ansi_prefix.win32.h> | |
585ae8cb | 46 | #include <ansi_parms.h> |
519cb848 | 47 | #ifdef __MWERKS__ |
585ae8cb SC |
48 | #if defined( __MSL__ ) && __MSL__ >= 0x5012 |
49 | #define fileno _fileno | |
50 | #define fdopen _fdopen | |
51 | #define tell _tell | |
52 | #endif | |
519cb848 | 53 | #endif |
17069255 SC |
54 | #elif defined( __WXMAC__) |
55 | #include <ansi_prefix.mac.h> | |
56 | #endif | |
57 | ||
58 | #define USE_DEFINE | |
519cb848 | 59 | |
17069255 SC |
60 | // in order to avoid problems further down in wxWindows |
61 | ||
62 | #ifdef __cplusplus | |
519cb848 | 63 | |
17069255 SC |
64 | extern "C" |
65 | { | |
66 | #endif | |
67 | char *strdup(const char *s) ; | |
68 | int isascii( int c ) ; | |
69 | #ifdef __cplusplus | |
70 | } ; | |
71 | #endif | |
72 |