]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wx_cw_cm.h
compilation fix for builds when WXWIN_COMPATIBILITY_2 is not defined
[wxWidgets.git] / include / wx / wx_cw_cm.h
CommitLineData
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
9#if (__MWERKS__ < 0x0900) || macintosh
10 #define __MAC__
11 #define __WXMAC__
519cb848
SC
12 #if TARGET_CARBON
13 #define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
a02bb143
SC
14 #include "MacHeaders.c"
15 /*
16 #define USE_PRECOMPILED_MAC_HEADERS 0
17 #ifdef __cplusplus
519cb848
SC
18 #include <MacHeadersPPCX++>
19 #else
20 #include <MacHeadersPPCX>
21 #endif
a02bb143
SC
22 */
23 #else
24 #define USE_PRECOMPILED_MAC_HEADERS 1 /*Set to 0 if you don't want to use precompiled MacHeaders*/
25 #endif
17069255
SC
26// automatically includes MacHeaders
27#elif (__MWERKS__ >= 0x0900) && __INTEL__
28 #define __WXMSW__
29 #define __WINDOWS__
30 #define __WIN95__
31 #define STRICT
32 #define NOMINMAX
33#elif __BEOS__
34 #include <ansi_prefix.be.h>
35 #include <Be.h>
36#else
37 #error unknown MW compiler
38#endif
39
40#ifdef __WXMSW__
41 #include <ansi_prefix.win32.h>
585ae8cb 42 #include <ansi_parms.h>
519cb848 43 #ifdef __MWERKS__
585ae8cb
SC
44 #if defined( __MSL__ ) && __MSL__ >= 0x5012
45 #define fileno _fileno
46 #define fdopen _fdopen
47 #define tell _tell
48 #endif
519cb848 49 #endif
17069255
SC
50#elif defined( __WXMAC__)
51 #include <ansi_prefix.mac.h>
52#endif
53
54#define USE_DEFINE
519cb848 55
17069255
SC
56// in order to avoid problems further down in wxWindows
57
58#ifdef __cplusplus
519cb848 59
17069255
SC
60extern "C"
61{
62#endif
63 char *strdup(const char *s) ;
64 int isascii( int c ) ;
65#ifdef __cplusplus
66} ;
67#endif
68