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_BORLAND_H |
9 | #define BOOST_PREDEF_COMPILER_BORLAND_H |
10 | |
11 | #include <boost/predef/version_number.h> |
12 | #include <boost/predef/make.h> |
13 | |
14 | /* tag::reference[] |
15 | = `BOOST_COMP_BORLAND` |
16 | |
17 | http://en.wikipedia.org/wiki/C_plus_plus_builder[Borland {CPP}] compiler. |
18 | Version number available as major, minor, and patch. |
19 | |
20 | [options="header"] |
21 | |=== |
22 | | {predef_symbol} | {predef_version} |
23 | |
24 | | `+__BORLANDC__+` | {predef_detection} |
25 | | `+__CODEGEARC__+` | {predef_detection} |
26 | |
27 | | `+__BORLANDC__+` | V.R.P |
28 | | `+__CODEGEARC__+` | V.R.P |
29 | |=== |
30 | */ // end::reference[] |
31 | |
32 | #define BOOST_COMP_BORLAND BOOST_VERSION_NUMBER_NOT_AVAILABLE |
33 | |
34 | #if defined(__BORLANDC__) || defined(__CODEGEARC__) |
35 | # if !defined(BOOST_COMP_BORLAND_DETECTION) && (defined(__CODEGEARC__)) |
36 | # define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__CODEGEARC__) |
37 | # endif |
38 | # if !defined(BOOST_COMP_BORLAND_DETECTION) |
39 | # define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__BORLANDC__) |
40 | # endif |
41 | #endif |
42 | |
43 | #ifdef BOOST_COMP_BORLAND_DETECTION |
44 | # define BOOST_COMP_BORLAND_AVAILABLE |
45 | # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED) |
46 | # define BOOST_COMP_BORLAND_EMULATED BOOST_COMP_BORLAND_DETECTION |
47 | # else |
48 | # undef BOOST_COMP_BORLAND |
49 | # define BOOST_COMP_BORLAND BOOST_COMP_BORLAND_DETECTION |
50 | # endif |
51 | # include <boost/predef/detail/comp_detected.h> |
52 | #endif |
53 | |
54 | #define BOOST_COMP_BORLAND_NAME "Borland C++" |
55 | |
56 | #endif |
57 | |
58 | #include <boost/predef/detail/test.h> |
59 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND,BOOST_COMP_BORLAND_NAME) |
60 | |
61 | #ifdef BOOST_COMP_BORLAND_EMULATED |
62 | #include <boost/predef/detail/test.h> |
63 | BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND_EMULATED,BOOST_COMP_BORLAND_NAME) |
64 | #endif |
65 | |