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)
8 #ifndef BOOST_PREDEF_COMPILER_BORLAND_H
9 #define BOOST_PREDEF_COMPILER_BORLAND_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 = `BOOST_COMP_BORLAND`
17 http://en.wikipedia.org/wiki/C_plus_plus_builder[Borland {CPP}] compiler.
18 Version number available as major, minor, and patch.
22 | {predef_symbol} | {predef_version}
24 | `+__BORLANDC__+` | {predef_detection}
25 | `+__CODEGEARC__+` | {predef_detection}
27 | `+__BORLANDC__+` | V.R.P
28 | `+__CODEGEARC__+` | V.R.P
30 */ // end::reference[]
32 #define BOOST_COMP_BORLAND BOOST_VERSION_NUMBER_NOT_AVAILABLE
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__)
38 # if !defined(BOOST_COMP_BORLAND_DETECTION)
39 # define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__BORLANDC__)
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
48 # undef BOOST_COMP_BORLAND
49 # define BOOST_COMP_BORLAND BOOST_COMP_BORLAND_DETECTION
51 # include <boost/predef/detail/comp_detected.h>
54 #define BOOST_COMP_BORLAND_NAME "Borland C++"
58 #include <boost/predef/detail/test.h>
59 BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND
,BOOST_COMP_BORLAND_NAME
)
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
)