MessagePack for C
metrowerks.h
Go to the documentation of this file.
1 /*
2 Copyright Rene Rivera 2008-2015
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 */
7 
8 #ifndef MSGPACK_PREDEF_COMPILER_METROWERKS_H
9 #define MSGPACK_PREDEF_COMPILER_METROWERKS_H
10 
12 #include <msgpack/predef/make.h>
13 
14 /*`
15 [heading `MSGPACK_COMP_MWERKS`]
16 
17 [@http://en.wikipedia.org/wiki/CodeWarrior Metrowerks CodeWarrior] compiler.
18 Version number available as major, minor, and patch.
19 
20 [table
21  [[__predef_symbol__] [__predef_version__]]
22 
23  [[`__MWERKS__`] [__predef_detection__]]
24  [[`__CWCC__`] [__predef_detection__]]
25 
26  [[`__CWCC__`] [V.R.P]]
27  [[`__MWERKS__`] [V.R.P >= 4.2.0]]
28  [[`__MWERKS__`] [9.R.0]]
29  [[`__MWERKS__`] [8.R.0]]
30  ]
31  */
32 
33 #define MSGPACK_COMP_MWERKS MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
34 
35 #if defined(__MWERKS__) || defined(__CWCC__)
36 # if !defined(MSGPACK_COMP_MWERKS_DETECTION) && defined(__CWCC__)
37 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__CWCC__)
38 # endif
39 # if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
40 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_PREDEF_MAKE_0X_VRPP(__MWERKS__)
41 # endif
42 # if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
43 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
44 # endif
45 # if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
46 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(9,(__MWERKS__)%100,0)
47 # endif
48 # if !defined(MSGPACK_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
49 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER(8,(__MWERKS__)%100,0)
50 # endif
51 # if !defined(MSGPACK_COMP_MWERKS_DETECTION)
52 # define MSGPACK_COMP_MWERKS_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
53 # endif
54 #endif
55 
56 #ifdef MSGPACK_COMP_MWERKS_DETECTION
57 # if defined(MSGPACK_PREDEF_DETAIL_COMP_DETECTED)
58 # define MSGPACK_COMP_MWERKS_EMULATED MSGPACK_COMP_MWERKS_DETECTION
59 # else
60 # undef MSGPACK_COMP_MWERKS
61 # define MSGPACK_COMP_MWERKS MSGPACK_COMP_MWERKS_DETECTION
62 # endif
63 # define MSGPACK_COMP_MWERKS_AVAILABLE
65 #endif
66 
67 #define MSGPACK_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
68 
69 #endif
70 
73 
74 #ifdef MSGPACK_COMP_MWERKS_EMULATED
76 MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_COMP_MWERKS_EMULATED,MSGPACK_COMP_MWERKS_NAME)
77 #endif
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition: test.h:13
#define MSGPACK_COMP_MWERKS
Definition: metrowerks.h:33
#define MSGPACK_COMP_MWERKS_NAME
Definition: metrowerks.h:67