qnxnto.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_OS_QNXNTO_H
  8. #define BOOST_PREDEF_OS_QNXNTO_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /* tag::reference[]
  12. = `BOOST_OS_QNX`
  13. http://en.wikipedia.org/wiki/QNX[QNX] operating system.
  14. Version number available as major, and minor if possible. And
  15. version 4 is specifically detected.
  16. [options="header"]
  17. |===
  18. | {predef_symbol} | {predef_version}
  19. | `+__QNX__+` | {predef_detection}
  20. | `+__QNXNTO__+` | {predef_detection}
  21. | `+_NTO_VERSION+` | V.R.0
  22. | `+__QNX__+` | 4.0.0
  23. |===
  24. */ // end::reference[]
  25. #define BOOST_OS_QNX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  26. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  27. defined(__QNX__) || defined(__QNXNTO__) \
  28. )
  29. # undef BOOST_OS_QNX
  30. # if !defined(BOOST_OS_QNX) && defined(_NTO_VERSION)
  31. # define BOOST_OS_QNX BOOST_PREDEF_MAKE_10_VVRR(_NTO_VERSION)
  32. # endif
  33. # if !defined(BOOST_OS_QNX) && defined(__QNX__)
  34. # define BOOST_OS_QNX BOOST_VERSION_NUMBER(4,0,0)
  35. # endif
  36. # if !defined(BOOST_OS_QNX)
  37. # define BOOST_OS_QNX BOOST_VERSION_NUMBER_AVAILABLE
  38. # endif
  39. #endif
  40. #if BOOST_OS_QNX
  41. # define BOOST_OS_QNX_AVAILABLE
  42. # include <boost/predef/detail/os_detected.h>
  43. #endif
  44. #define BOOST_OS_QNX_NAME "QNX"
  45. #endif
  46. #include <boost/predef/detail/test.h>
  47. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_QNX,BOOST_OS_QNX_NAME)