annotate DEPENDENCIES/generic/include/boost/predef/compiler/metrowerks.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /*
Chris@101 2 Copyright Rene Rivera 2008-2014
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@101 36 # if !defined(BOOST_COMP_MWERKS_DETECTION) && defined(__CWCC__)
Chris@101 37 # define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__)
Chris@16 38 # endif
Chris@101 39 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
Chris@101 40 # define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__)
Chris@16 41 # endif
Chris@101 42 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
Chris@101 43 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
Chris@16 44 # endif
Chris@101 45 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
Chris@101 46 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0)
Chris@16 47 # endif
Chris@101 48 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
Chris@101 49 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0)
Chris@16 50 # endif
Chris@101 51 # if !defined(BOOST_COMP_MWERKS_DETECTION)
Chris@101 52 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
Chris@16 53 # endif
Chris@16 54 #endif
Chris@16 55
Chris@101 56 #ifdef BOOST_COMP_MWERKS_DETECTION
Chris@101 57 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
Chris@101 58 # define BOOST_COMP_MWERKS_EMULATED BOOST_COMP_MWERKS_DETECTION
Chris@101 59 # else
Chris@101 60 # undef BOOST_COMP_MWERKS
Chris@101 61 # define BOOST_COMP_MWERKS BOOST_COMP_MWERKS_DETECTION
Chris@101 62 # endif
Chris@16 63 # define BOOST_COMP_MWERKS_AVAILABLE
Chris@101 64 # include <boost/predef/detail/comp_detected.h>
Chris@16 65 #endif
Chris@16 66
Chris@16 67 #define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
Chris@16 68
Chris@16 69 #include <boost/predef/detail/test.h>
Chris@16 70 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS,BOOST_COMP_MWERKS_NAME)
Chris@16 71
Chris@101 72 #ifdef BOOST_COMP_MWERKS_EMULATED
Chris@101 73 #include <boost/predef/detail/test.h>
Chris@101 74 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS_EMULATED,BOOST_COMP_MWERKS_NAME)
Chris@101 75 #endif
Chris@101 76
Chris@16 77
Chris@16 78 #endif