borland.h 1.8 KB

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