]> git.saurik.com Git - wxWidgets.git/blame - include/wx/wx_cw_cm.h
show the function in which the assert failure occured if the compiler supports it
[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
SC
21
22#define WX_COMP_INLINE_NO_CLASS // defined if the compiler does not want the classname repeated for inlines within a class definition
23
d5e29b95
JS
24#if __MWERKS__ >= 0x2400 && __MWERKS__ < 0x3200
25 #pragma old_argmatch on
d015713e
SC
26#endif
27
2d2ed20f 28#if (__MWERKS__ < 0x0900) || macintosh || __MACH__
17069255
SC
29 #define __MAC__
30 #define __WXMAC__
17069255 31#elif (__MWERKS__ >= 0x0900) && __INTEL__
ba14d986
VZ
32 #define WIN32
33 #define _WINDOWS
17069255
SC
34 #define __WXMSW__
35 #define __WINDOWS__
36 #define __WIN95__
ba14d986 37 #define __WIN32__
17069255
SC
38 #define STRICT
39 #define NOMINMAX
40#elif __BEOS__
41 #include <ansi_prefix.be.h>
42 #include <Be.h>
cab1a605 43#else
17069255
SC
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__
ba14d986 51 #if defined( __MSL__ ) && __MSL__ >= 0x5012 && __MSL__ < 0x7000
cab1a605
WS
52 #define fileno _fileno
53 #define fdopen _fdopen
54 #define tell _tell
585ae8cb 55 #endif
519cb848 56 #endif
17069255 57#elif defined( __WXMAC__)
cab1a605 58 #define USE_PRECOMPILED_MAC_HEADERS 0 /*Set to 0 if you don't want to use precompiled MacHeaders*/
0326d968 59 #define ACCESSOR_CALLS_ARE_FUNCTIONS 1
2d2ed20f 60 #define OPAQUE_TOOLBOX_STRUCTS 1
d5e29b95
JS
61
62 /*CW9 has mbstate_t*/
63 #if defined(__MACH__) && __MWERKS__ < 0x3200
29569eb4
SC
64 typedef int mbstate_t;
65 #define _MBSTATE_T
4f357b2f 66 #endif
d5e29b95
JS
67
68 /*CW9 has ssize_t*/
69 #if defined(__MACH__) && __MWERKS__ >= 0x3200
70 #define HAVE_SSIZE_T
71 #endif
72
29569eb4 73 #include <mslconfig>
cab1a605 74 // for getting the correct expat includes
02ac8d7a
SC
75 #define MACOS_CLASSIC
76 /*
77 #include <MacTypes.h>
cab1a605
WS
78 #if UNIVERSAL_INTERFACES_VERSION < 0x0340
79 #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/"
80 #endif
81 */
17069255
SC
82#endif
83
84#define USE_DEFINE
519cb848 85