vms.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Copyright Rene Rivera 2011-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_OS_VMS_H
  8. #define BOOST_PREDEF_OS_VMS_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_VMS`
  13. http://en.wikipedia.org/wiki/Vms[VMS] operating system.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `VMS` | {predef_detection}
  18. | `+__VMS+` | {predef_detection}
  19. | `+__VMS_VER+` | V.R.P
  20. |===
  21. */ // end::reference[]
  22. #define BOOST_OS_VMS BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  24. defined(VMS) || defined(__VMS) \
  25. )
  26. # undef BOOST_OS_VMS
  27. # if defined(__VMS_VER)
  28. # define BOOST_OS_VMS BOOST_PREDEF_MAKE_10_VVRR00PP00(__VMS_VER)
  29. # else
  30. # define BOOST_OS_VMS BOOST_VERSION_NUMBER_AVAILABLE
  31. # endif
  32. #endif
  33. #if BOOST_OS_VMS
  34. # define BOOST_OS_VMS_AVAILABLE
  35. # include <boost/predef/detail/os_detected.h>
  36. #endif
  37. #define BOOST_OS_VMS_NAME "VMS"
  38. #endif
  39. #include <boost/predef/detail/test.h>
  40. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_VMS,BOOST_OS_VMS_NAME)