borland.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. /*`
  12. [heading `BOOST_COMP_BORLAND`]
  13. [@http://en.wikipedia.org/wiki/C_plus_plus_builder Borland C++] compiler.
  14. Version number available as major, minor, and patch.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__BORLANDC__`] [__predef_detection__]]
  18. [[`__CODEGEARC__`] [__predef_detection__]]
  19. [[`__BORLANDC__`] [V.R.P]]
  20. [[`__CODEGEARC__`] [V.R.P]]
  21. ]
  22. */
  23. #define BOOST_COMP_BORLAND BOOST_VERSION_NUMBER_NOT_AVAILABLE
  24. #if defined(__BORLANDC__) || defined(__CODEGEARC__)
  25. # if !defined(BOOST_COMP_BORLAND_DETECTION) && (defined(__CODEGEARC__))
  26. # define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__CODEGEARC__)
  27. # endif
  28. # if !defined(BOOST_COMP_BORLAND_DETECTION)
  29. # define BOOST_COMP_BORLAND_DETECTION BOOST_PREDEF_MAKE_0X_VVRP(__BORLANDC__)
  30. # endif
  31. #endif
  32. #ifdef BOOST_COMP_BORLAND_DETECTION
  33. # define BOOST_COMP_BORLAND_AVAILABLE
  34. # if defined(BOOST_PREDEF_DETAIL_COMP_DETECTED)
  35. # define BOOST_COMP_BORLAND_EMULATED BOOST_COMP_BORLAND_DETECTION
  36. # else
  37. # undef BOOST_COMP_BORLAND
  38. # define BOOST_COMP_BORLAND BOOST_COMP_BORLAND_DETECTION
  39. # endif
  40. # include <boost/predef/detail/comp_detected.h>
  41. #endif
  42. #define BOOST_COMP_BORLAND_NAME "Borland C++"
  43. #endif
  44. #include <boost/predef/detail/test.h>
  45. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND,BOOST_COMP_BORLAND_NAME)
  46. #ifdef BOOST_COMP_BORLAND_EMULATED
  47. #include <boost/predef/detail/test.h>
  48. BOOST_PREDEF_DECLARE_TEST(BOOST_COMP_BORLAND_EMULATED,BOOST_COMP_BORLAND_NAME)
  49. #endif