Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/predef/compiler/metrowerks.h @ 16:2665513ce2d3
Add boost headers
author | Chris Cannam |
---|---|
date | Tue, 05 Aug 2014 11:11:38 +0100 |
parents | |
children | c530137014c0 |
comparison
equal
deleted
inserted
replaced
15:663ca0da4350 | 16:2665513ce2d3 |
---|---|
1 /* | |
2 Copyright Redshift Software, Inc. 2008-2013 | |
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 BOOST_PREDEF_COMPILER_METROWERKS_H | |
9 #define BOOST_PREDEF_COMPILER_METROWERKS_H | |
10 | |
11 #include <boost/predef/version_number.h> | |
12 #include <boost/predef/make.h> | |
13 | |
14 /*` | |
15 [heading `BOOST_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 BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_NOT_AVAILABLE | |
34 | |
35 #if defined(__MWERKS__) || defined(__CWCC__) | |
36 # undef BOOST_COMP_MWERKS | |
37 # if !defined(BOOST_COMP_MWERKS) && defined(__CWCC__) | |
38 # define BOOST_COMP_MWERKS BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__) | |
39 # endif | |
40 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x4200) | |
41 # define BOOST_COMP_MWERKS BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__) | |
42 # endif | |
43 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3 | |
44 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0) | |
45 # endif | |
46 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3200) | |
47 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0) | |
48 # endif | |
49 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3000) | |
50 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0) | |
51 # endif | |
52 # if !defined(BOOST_COMP_MWERKS) | |
53 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_AVAILABLE | |
54 # endif | |
55 #endif | |
56 | |
57 #if BOOST_COMP_MWERKS | |
58 # define BOOST_COMP_MWERKS_AVAILABLE | |
59 #endif | |
60 | |
61 #define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior" | |
62 | |
63 #include <boost/predef/detail/test.h> | |
64 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS,BOOST_COMP_MWERKS_NAME) | |
65 | |
66 | |
67 #endif |