annotate 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
rev   line source
Chris@16 1 /*
Chris@16 2 Copyright Redshift Software, Inc. 2008-2013
Chris@16 3 Distributed under the Boost Software License, Version 1.0.
Chris@16 4 (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 5 http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 */
Chris@16 7
Chris@16 8 #ifndef BOOST_PREDEF_COMPILER_METROWERKS_H
Chris@16 9 #define BOOST_PREDEF_COMPILER_METROWERKS_H
Chris@16 10
Chris@16 11 #include <boost/predef/version_number.h>
Chris@16 12 #include <boost/predef/make.h>
Chris@16 13
Chris@16 14 /*`
Chris@16 15 [heading `BOOST_COMP_MWERKS`]
Chris@16 16
Chris@16 17 [@http://en.wikipedia.org/wiki/CodeWarrior Metrowerks CodeWarrior] compiler.
Chris@16 18 Version number available as major, minor, and patch.
Chris@16 19
Chris@16 20 [table
Chris@16 21 [[__predef_symbol__] [__predef_version__]]
Chris@16 22
Chris@16 23 [[`__MWERKS__`] [__predef_detection__]]
Chris@16 24 [[`__CWCC__`] [__predef_detection__]]
Chris@16 25
Chris@16 26 [[`__CWCC__`] [V.R.P]]
Chris@16 27 [[`__MWERKS__`] [V.R.P >= 4.2.0]]
Chris@16 28 [[`__MWERKS__`] [9.R.0]]
Chris@16 29 [[`__MWERKS__`] [8.R.0]]
Chris@16 30 ]
Chris@16 31 */
Chris@16 32
Chris@16 33 #define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_NOT_AVAILABLE
Chris@16 34
Chris@16 35 #if defined(__MWERKS__) || defined(__CWCC__)
Chris@16 36 # undef BOOST_COMP_MWERKS
Chris@16 37 # if !defined(BOOST_COMP_MWERKS) && defined(__CWCC__)
Chris@16 38 # define BOOST_COMP_MWERKS BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__)
Chris@16 39 # endif
Chris@16 40 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x4200)
Chris@16 41 # define BOOST_COMP_MWERKS BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__)
Chris@16 42 # endif
Chris@16 43 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
Chris@16 44 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
Chris@16 45 # endif
Chris@16 46 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3200)
Chris@16 47 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0)
Chris@16 48 # endif
Chris@16 49 # if !defined(BOOST_COMP_MWERKS) && (__MWERKS__ >= 0x3000)
Chris@16 50 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0)
Chris@16 51 # endif
Chris@16 52 # if !defined(BOOST_COMP_MWERKS)
Chris@16 53 # define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_AVAILABLE
Chris@16 54 # endif
Chris@16 55 #endif
Chris@16 56
Chris@16 57 #if BOOST_COMP_MWERKS
Chris@16 58 # define BOOST_COMP_MWERKS_AVAILABLE
Chris@16 59 #endif
Chris@16 60
Chris@16 61 #define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
Chris@16 62
Chris@16 63 #include <boost/predef/detail/test.h>
Chris@16 64 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS,BOOST_COMP_MWERKS_NAME)
Chris@16 65
Chris@16 66
Chris@16 67 #endif