8 #ifndef BOOST_PREDEF_COMPILER_METROWERKS_H
9 #define BOOST_PREDEF_COMPILER_METROWERKS_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
33 #define BOOST_COMP_MWERKS BOOST_VERSION_NUMBER_NOT_AVAILABLE
35 #if defined(__MWERKS__) || defined(__CWCC__)
36 # if !defined(BOOST_COMP_MWERKS_DETECTION) && defined(__CWCC__)
37 # define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__CWCC__)
39 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x4200)
40 # define BOOST_COMP_MWERKS_DETECTION BOOST_PREDEF_MAKE_0X_VRPP(__MWERKS__)
42 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3204) // note the "skip": 04->9.3
43 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100-1,0)
45 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3200)
46 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(9,(__MWERKS__)%100,0)
48 # if !defined(BOOST_COMP_MWERKS_DETECTION) && (__MWERKS__ >= 0x3000)
49 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER(8,(__MWERKS__)%100,0)
51 # if !defined(BOOST_COMP_MWERKS_DETECTION)
52 # define BOOST_COMP_MWERKS_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
56 #ifdef BOOST_COMP_MWERKS_DETECTION
57 # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
58 # define BOOST_COMP_MWERKS_EMULATED BOOST_COMP_MWERKS_DETECTION
60 # undef BOOST_COMP_MWERKS
61 # define BOOST_COMP_MWERKS BOOST_COMP_MWERKS_DETECTION
63 # define BOOST_COMP_MWERKS_AVAILABLE
67 #define BOOST_COMP_MWERKS_NAME "Metrowerks CodeWarrior"
71 #include <boost/predef/detail/test.h>
74 #ifdef BOOST_COMP_MWERKS_EMULATED
75 #include <boost/predef/detail/test.h>