]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/wx_cw_cm.h
moved MGL initialization to earlier stage (crashes otherwise...) and implemented...
[wxWidgets.git] / include / wx / wx_cw_cm.h
... / ...
CommitLineData
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__ >= 0x2400
10#pragma old_argmatch on
11#endif
12
13#if (__MWERKS__ < 0x0900) || macintosh
14 #define __MAC__
15 #define __WXMAC__
16 #if TARGET_CARBON
17 #define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
18 #include "MacHeaders.c"
19 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
20 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
21 #endif
22 /*
23 #define USE_PRECOMPILED_MAC_HEADERS 0
24 #ifdef __cplusplus
25 #include <MacHeadersPPCX++>
26 #else
27 #include <MacHeadersPPCX>
28 #endif
29 */
30 #else
31 #define USE_PRECOMPILED_MAC_HEADERS 1 /*Set to 0 if you don't want to use precompiled MacHeaders*/
32 #endif
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>
49 #include <ansi_parms.h>
50 #ifdef __MWERKS__
51 #if defined( __MSL__ ) && __MSL__ >= 0x5012
52 #define fileno _fileno
53 #define fdopen _fdopen
54 #define tell _tell
55 #endif
56 #endif
57#elif defined( __WXMAC__)
58 #include <ansi_prefix.mac.h>
59#endif
60
61#define USE_DEFINE
62
63// in order to avoid problems further down in wxWindows
64
65#ifdef __cplusplus
66
67extern "C"
68{
69#endif
70 char *strdup(const char *s) ;
71 int isascii( int c ) ;
72#ifdef __cplusplus
73} ;
74#endif
75