1 | /* |
2 | Copyright Rene Rivera 2008-2015 |
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_MPW_H |
9 | #define BOOST_PREDEF_COMPILER_MPW_H |
10 | |
11 | #include <boost/predef/version_number.h> |
12 | #include <boost/predef/make.h> |
13 | |
14 | /* tag::reference[] |
15 | = `BOOST_COMP_MPW` |
16 | |
17 | http://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop[MPW {CPP}] compiler. |
18 | Version number available as major, and minor. |
19 | |
20 | [options="header"] |
21 | |=== |
22 | | {predef_symbol} | {predef_version} |
23 | |
24 | | `+__MRC__+` | {predef_detection} |
25 | | `MPW_C` | {predef_detection} |
26 | | `MPW_CPLUS` | {predef_detection} |
27 | |
28 | | `+__MRC__+` | V.R.0 |
29 | |=== |
30 | */ // end::reference[] |
31 | |
32 | #define BOOST_COMP_MPW BOOST_VERSION_NUMBER_NOT_AVAILABLE |
33 | |
34 | #if defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) |
35 | # if !defined(BOOST_COMP_MPW_DETECTION) && defined(__MRC__) |
36 | # define BOOST_COMP_MPW_DETECTION BOOST_PREDEF_MAKE_0X_VVRR(__MRC__) |
37 | # endif |
38 | # if !defined(BOOST_COMP_MPW_DETECTION) |
39 | # define BOOST_COMP_MPW_DETECTION BOOST_VERSION_NUMBER_AVAILABLE |
40 | # endif |
41 | #endif |
42 | |
43 | #ifdef BOOST_COMP_MPW_DETECTION |
44 | # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED) |
45 | # define BOOST_COMP_MPW_EMULATED BOOST_COMP_MPW_DETECTION |
46 | # else |
47 | # undef BOOST_COMP_MPW |
48 | # define BOOST_COMP_MPW BOOST_COMP_MPW_DETECTION |
49 | # endif |
50 | # define BOOST_COMP_MPW_AVAILABLE |
51 | # include <boost/predef/detail/comp_detected.h> |
52 | #endif |
53 | |
54 | #define BOOST_COMP_MPW_NAME "MPW C++" |
55 | |
56 | #endif |
57 | |
58 | #include <boost/predef/detail/test.h> |
59 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW,BOOST_COMP_MPW_NAME) |
60 | |
61 | #ifdef BOOST_COMP_MPW_EMULATED |
62 | #include <boost/predef/detail/test.h> |
63 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_MPW_EMULATED,BOOST_COMP_MPW_NAME) |
64 | #endif |
65 | |