]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wx_cw_cm.h
use wxChar* instead of wxString for string constants, cuts object size by ~1200 bytes
[wxWidgets.git] / include / wx / wx_cw_cm.h
CommitLineData
99d80019
JS
1/*
2 Name: wx/wx_cw_cm.h
3 Purpose: wxWidgets definitions for CodeWarrior builds
4 Author: Stefan Csomor
5 Modified by:
6 Created:
7 RCS-ID: $Id$
8 Copyright: (c) Stefan Csomor
9 Licence: wxWindows licence
10*/
11
cab1a605 12#define MSL_USE_PRECOMPILED_HEADERS 0
5d7fe188
SC
13#if __WXDEBUG__
14 // mac os assert levels
15 #define DEBUG 1
16 #define DEBUG_INTERNAL 1
17#endif
17069255
SC
18#if !defined( __MWERKS__ )
19 #error "this file is only for builds with Metrowerks CodeWarrior"
cab1a605 20#endif
17069255 21
65b977e5
VZ
22// defined if the compiler does not want the classname repeated for inlines
23// within a class definition
24#define WX_COMP_INLINE_NO_CLASS
17069255 25
d5e29b95
JS
26#if __MWERKS__ >= 0x2400 && __MWERKS__ < 0x3200
27 #pragma old_argmatch on
d015713e
SC
28#endif
29
2d2ed20f 30#if (__MWERKS__ < 0x0900) || macintosh || __MACH__
17069255
SC
31 #define __MAC__
32 #define __WXMAC__
17069255 33#elif (__MWERKS__ >= 0x0900) && __INTEL__
ba14d986
VZ
34 #define WIN32
35 #define _WINDOWS
17069255
SC
36 #define __WXMSW__
37 #define __WINDOWS__
38 #define __WIN95__
ba14d986 39 #define __WIN32__
17069255
SC
40 #define STRICT
41 #define NOMINMAX
42#elif __BEOS__
43 #include <ansi_prefix.be.h>
44 #include <Be.h>
cab1a605 45#else
17069255
SC
46 #error unknown MW compiler
47#endif
48
49#ifdef __WXMSW__
50 #include <ansi_prefix.win32.h>
585ae8cb 51 #include <ansi_parms.h>
519cb848 52 #ifdef __MWERKS__
ba14d986 53 #if defined( __MSL__ ) && __MSL__ >= 0x5012 && __MSL__ < 0x7000
cab1a605
WS
54 #define fileno _fileno
55 #define fdopen _fdopen
56 #define tell _tell
585ae8cb 57 #endif
519cb848 58 #endif
17069255 59#elif defined( __WXMAC__)
65b977e5
VZ
60 /* Set to 0 if you don't want to use precompiled MacHeaders */
61 #define USE_PRECOMPILED_MAC_HEADERS 0
0326d968 62 #define ACCESSOR_CALLS_ARE_FUNCTIONS 1
2d2ed20f 63 #define OPAQUE_TOOLBOX_STRUCTS 1
65b977e5
VZ
64
65 /* CW8.3+ has mbstate_t */
66 #if defined(__MACH__) && __MWERKS__ < 0x3003
67 typedef int mbstate_t;
68 #define _MBSTATE_T
4f357b2f 69 #endif
65b977e5
VZ
70
71 /* CW9 has ssize_t */
d5e29b95
JS
72 #if defined(__MACH__) && __MWERKS__ >= 0x3200
73 #define HAVE_SSIZE_T
65b977e5
VZ
74 #endif
75
76 #include <mslconfig>
cab1a605 77 // for getting the correct expat includes
02ac8d7a
SC
78 #define MACOS_CLASSIC
79 /*
80 #include <MacTypes.h>
cab1a605
WS
81 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
82 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
83 #endif
84 */
17069255
SC
85#endif
86
87#define USE_DEFINE
519cb848 88