]> git.saurik.com Git - wxWidgets.git/blob - include/wx/wx_cw_cm.h
Added wxRendererNative::DrawTitleBarBitmap().
[wxWidgets.git] / include / wx / wx_cw_cm.h
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
12 #define MSL_USE_PRECOMPILED_HEADERS 0
13 #if __WXDEBUG__
14 // mac os assert levels
15 #define DEBUG 1
16 #define DEBUG_INTERNAL 1
17 #endif
18 #if !defined( __MWERKS__ )
19 #error "this file is only for builds with Metrowerks CodeWarrior"
20 #endif
21
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
25
26 #if __MWERKS__ >= 0x2400 && __MWERKS__ < 0x3200
27 #pragma old_argmatch on
28 #endif
29
30 #if (__MWERKS__ < 0x0900) || macintosh || __MACH__
31 #define __MAC__
32 #define __WXMAC__
33 #elif (__MWERKS__ >= 0x0900) && __INTEL__
34 #define WIN32
35 #define _WINDOWS
36 #define __WXMSW__
37 #define __WINDOWS__
38 #define __WIN95__
39 #define __WIN32__
40 #define STRICT
41 #define NOMINMAX
42 #elif __BEOS__
43 #include <ansi_prefix.be.h>
44 #include <Be.h>
45 #else
46 #error unknown MW compiler
47 #endif
48
49 #ifdef __WXMSW__
50 #include <ansi_prefix.win32.h>
51 #include <ansi_parms.h>
52 #ifdef __MWERKS__
53 #if defined( __MSL__ ) && __MSL__ >= 0x5012 && __MSL__ < 0x7000
54 #define fileno _fileno
55 #define fdopen _fdopen
56 #define tell _tell
57 #endif
58 #endif
59 #elif defined( __WXMAC__)
60 /* Set to 0 if you don't want to use precompiled MacHeaders */
61 #define USE_PRECOMPILED_MAC_HEADERS 0
62 #define ACCESSOR_CALLS_ARE_FUNCTIONS 1
63 #define OPAQUE_TOOLBOX_STRUCTS 1
64
65 /* CW8.3+ has mbstate_t */
66 #if defined(__MACH__) && __MWERKS__ < 0x3003
67 typedef int mbstate_t;
68 #define _MBSTATE_T
69 #endif
70
71 /* CW8.3+ has ssize_t */
72 #if defined(__MACH__) && __MWERKS__ >= 0x3003
73 #define HAVE_SSIZE_T
74 #endif
75
76 #include <mslconfig>
77 // for getting the correct expat includes
78 #define MACOS_CLASSIC
79 /*
80 #include <MacTypes.h>
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 */
85 #endif
86
87 #define USE_DEFINE
88