vms.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. Copyright Redshift Software Inc 2011-2013
  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. /*`
  12. [heading `BOOST_OS_VMS`]
  13. [@http://en.wikipedia.org/wiki/Vms VMS] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`VMS`] [__predef_detection__]]
  17. [[`__VMS`] [__predef_detection__]]
  18. [[`__VMS_VER`] [V.R.P]]
  19. ]
  20. */
  21. #define BOOST_OS_VMS BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
  23. defined(VMS) || defined(__VMS) \
  24. )
  25. # undef BOOST_OS_VMS
  26. # if defined(__VMS_VER)
  27. # define BOOST_OS_VMS BOOST_PREDEF_MAKE_10_VVRR00PP00(__VMS_VER)
  28. # else
  29. # define BOOST_OS_VMS BOOST_VERSION_NUMBER_AVAILABLE
  30. # endif
  31. #endif
  32. #if BOOST_OS_VMS
  33. # define BOOST_OS_VMS_AVAILABLE
  34. # include <boost/predef/detail/os_detected.h>
  35. #endif
  36. #define BOOST_OS_VMS_NAME "VMS"
  37. #include <boost/predef/detail/test.h>
  38. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_VMS,BOOST_OS_VMS_NAME)
  39. #endif