]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wx_cw_cm.h
better fix for MIPSpro warnings: removed unneeded calls to floor()
[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
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 18 #include "MacHeaders.c"
e126b44d
SC
19 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
20 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
21 #endif
a02bb143
SC
22 /*
23 #define USE_PRECOMPILED_MAC_HEADERS 0
24 #ifdef __cplusplus
519cb848
SC
25 #include <MacHeadersPPCX++>
26 #else
27 #include <MacHeadersPPCX>
28 #endif
a02bb143
SC
29 */
30 #else
03e11df5 31 #define USE_PRECOMPILED_MAC_HEADERS 1 /*Set to 0 if you don't want to use precompiled MacHeaders*/
a02bb143 32 #endif
17069255
SC
33// automatically includes MacHeaders
34#elif (__MWERKS__ >= 0x0900) && __INTEL__
35 #define __WXMSW__
36 #define __WINDOWS__
37 #define __WIN95__
38 #define STRICT
39 #define NOMINMAX
40#elif __BEOS__
41 #include <ansi_prefix.be.h>
42 #include <Be.h>
43#else
44 #error unknown MW compiler
45#endif
46
47#ifdef __WXMSW__
48 #include <ansi_prefix.win32.h>
585ae8cb 49 #include <ansi_parms.h>
519cb848 50 #ifdef __MWERKS__
585ae8cb
SC
51 #if defined( __MSL__ ) && __MSL__ >= 0x5012
52 #define fileno _fileno
53 #define fdopen _fdopen
54 #define tell _tell
55 #endif
519cb848 56 #endif
17069255
SC
57#elif defined( __WXMAC__)
58 #include <ansi_prefix.mac.h>
59#endif
60
61#define USE_DEFINE
519cb848 62
17069255
SC
63// in order to avoid problems further down in wxWindows
64
65#ifdef __cplusplus
519cb848 66
17069255
SC
67extern "C"
68{
69#endif
70 char *strdup(const char *s) ;
71 int isascii( int c ) ;
72#ifdef __cplusplus
73} ;
74#endif
75