Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_COMPILER_METROWERKS_H
0009 #define BOOST_PREDEF_COMPILER_METROWERKS_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 /* tag::reference[]
0015 = `BOOST_COMP_MWERKS`
0016 
0017 http://en.wikipedia.org/wiki/CodeWarrior[Metrowerks CodeWarrior] compiler.
0018 Version number available as major, minor, and patch.
0019 
0020 [options="header"]
0021 |===
0022 | {predef_symbol} | {predef_version}
0023 
0024 | `+__MWERKS__+` | {predef_detection}
0025 | `+__CWCC__+` | {predef_detection}
0026 
0027 | `+__CWCC__+` | V.R.P
0028 | `+__MWERKS__+` | V.R.P >= 4.2.0
0029 | `+__MWERKS__+` | 9.R.0
0030 | `+__MWERKS__+` | 8.R.0
0031 |===
0032 */ // end::reference[]
0033 
0034 #define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_NOT_AVAILABLE
0035 
0036 #if defined(__MWERKS__) || defined(__CWCC__)
0037 #   if !defined(BOOST_COMP_MWERKS_DETECTION) && defined(__CWCC__)
0038 #       define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__)
0039 #   endif
0040 #   if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
0041 #       define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__)
0042 #   endif
0043 #   if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
0044 #       define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
0045 #   endif
0046 #   if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
0047 #       define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0)
0048 #   endif
0049 #   if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
0050 #       define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0)
0051 #   endif
0052 #   if !defined(BOOST_COMP_MWERKS_DETECTION)
0053 #       define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
0054 #   endif
0055 #endif
0056 
0057 #ifdef BOOST_COMP_MWERKS_DETECTION
0058 #   if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
0059 #       define BOOST_COMP_MWERKS_EMULATED BOOST_COMP_MWERKS_DETECTION
0060 #   else
0061 #       undef BOOST_COMP_MWERKS
0062 #       define BOOST_COMP_MWERKS BOOST_COMP_MWERKS_DETECTION
0063 #   endif
0064 #   define BOOST_COMP_MWERKS_AVAILABLE
0065 #   include <boost/predef/detail/comp_detected.h>
0066 #endif
0067 
0068 #define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
0069 
0070 #endif
0071 
0072 #include <boost/predef/detail/test.h>
0073 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS,BOOST_COMP_MWERKS_NAME)
0074 
0075 #ifdef BOOST_COMP_MWERKS_EMULATED
0076 #include <boost/predef/detail/test.h>
0077 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MWERKS_EMULATED,BOOST_COMP_MWERKS_NAME)
0078 #endif