dinkumware.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_LIBRARY_STD_DINKUMWARE_H
  8. #define BOOST_PREDEF_LIBRARY_STD_DINKUMWARE_H
  9. #include <boost/predef/library/std/_prefix.h>
  10. #include <boost/predef/version_number.h>
  11. #include <boost/predef/make.h>
  12. /* tag::reference[]
  13. = `BOOST_LIB_STD_DINKUMWARE`
  14. http://en.wikipedia.org/wiki/Dinkumware[Dinkumware] Standard {CPP} Library.
  15. If available version number as major, minor, and patch.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+_YVALS+`, `+__IBMCPP__+` | {predef_detection}
  20. | `+_CPPLIB_VER+` | {predef_detection}
  21. | `+_CPPLIB_VER+` | V.R.0
  22. |===
  23. */ // end::reference[]
  24. #define BOOST_LIB_STD_DINKUMWARE BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
  26. # undef BOOST_LIB_STD_DINKUMWARE
  27. # if defined(_CPPLIB_VER)
  28. # define BOOST_LIB_STD_DINKUMWARE BOOST_PREDEF_MAKE_10_VVRR(_CPPLIB_VER)
  29. # else
  30. # define BOOST_LIB_STD_DINKUMWARE BOOST_VERSION_NUMBER_AVAILABLE
  31. # endif
  32. #endif
  33. #if BOOST_LIB_STD_DINKUMWARE
  34. # define BOOST_LIB_STD_DINKUMWARE_AVAILABLE
  35. #endif
  36. #define BOOST_LIB_STD_DINKUMWARE_NAME "Dinkumware"
  37. #endif
  38. #include <boost/predef/detail/test.h>
  39. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_DINKUMWARE,BOOST_LIB_STD_DINKUMWARE_NAME)