]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wx_cw_cm.h
reSWIGged
[wxWidgets.git] / include / wx / wx_cw_cm.h
CommitLineData
5273bf2f 1#define MSL_USE_PRECOMPILED_HEADERS 0
5d7fe188
SC
2#if __WXDEBUG__
3 // mac os assert levels
4 #define DEBUG 1
5 #define DEBUG_INTERNAL 1
6#endif
17069255
SC
7#if !defined( __MWERKS__ )
8 #error "this file is only for builds with Metrowerks CodeWarrior"
9#endif
10
11#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
12
1770b024 13#if __MWERKS__ >= 0x2400 && __MWERKS__ <= 0x3200
d015713e
SC
14#pragma old_argmatch on
15#endif
16
2d2ed20f 17#if (__MWERKS__ < 0x0900) || macintosh || __MACH__
17069255
SC
18 #define __MAC__
19 #define __WXMAC__
17069255 20#elif (__MWERKS__ >= 0x0900) && __INTEL__
ba14d986
VZ
21 #define WIN32
22 #define _WINDOWS
17069255
SC
23 #define __WXMSW__
24 #define __WINDOWS__
25 #define __WIN95__
ba14d986 26 #define __WIN32__
17069255
SC
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__
ba14d986 40 #if defined( __MSL__ ) && __MSL__ >= 0x5012 && __MSL__ < 0x7000
585ae8cb
SC
41 #define fileno _fileno
42 #define fdopen _fdopen
43 #define tell _tell
44 #endif
519cb848 45 #endif
17069255 46#elif defined( __WXMAC__)
0326d968
GD
47 #define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
48 #define ACCESSOR_CALLS_ARE_FUNCTIONS 1
2d2ed20f 49 #define OPAQUE_TOOLBOX_STRUCTS 1
2d2ed20f
SC
50 #ifdef __MACH__
51 #include <ansi_prefix.mach.h>
52 #include <msl_c_version.h>
53 #include <stdint.h>
54 #undef WCHAR_MAX
55 #include <machine/ansi.h>
56 #else
57 #include <ansi_prefix.mac.h>
4f357b2f 58 #endif
02ac8d7a
SC
59 // for getting the correct expat includes
60 #define MACOS_CLASSIC
61 /*
62 #include <MacTypes.h>
63 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
64 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
65 #endif
66 */
17069255
SC
67#endif
68
69#define USE_DEFINE
519cb848 70
17069255
SC
71// in order to avoid problems further down in wxWindows
72
73#ifdef __cplusplus
519cb848 74
17069255
SC
75extern "C"
76{
77#endif
78 char *strdup(const char *s) ;
79 int isascii( int c ) ;
80#ifdef __cplusplus
ba14d986 81}
17069255
SC
82#endif
83