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