qnxnto.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. /*`
  12. [heading `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. [table
  17. [[__predef_symbol__] [__predef_version__]]
  18. [[`__QNX__`] [__predef_detection__]]
  19. [[`__QNXNTO__`] [__predef_detection__]]
  20. [[`_NTO_VERSION`] [V.R.0]]
  21. [[`__QNX__`] [4.0.0]]
  22. ]
  23. */
  24. #define BOOST_OS_QNX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  26. defined(__QNX__) || defined(__QNXNTO__) \
  27. )
  28. # undef BOOST_OS_QNX
  29. # if !defined(BOOST_OS_QNX) && defined(_NTO_VERSION)
  30. # define BOOST_OS_QNX BOOST_PREDEF_MAKE_10_VVRR(_NTO_VERSION)
  31. # endif
  32. # if !defined(BOOST_OS_QNX) && defined(__QNX__)
  33. # define BOOST_OS_QNX BOOST_VERSION_NUMBER(4,0,0)
  34. # endif
  35. # if !defined(BOOST_OS_QNX)
  36. # define BOOST_OS_QNX BOOST_VERSION_NUMBER_AVAILABLE
  37. # endif
  38. #endif
  39. #if BOOST_OS_QNX
  40. # define BOOST_OS_QNX_AVAILABLE
  41. # include <boost/predef/detail/os_detected.h>
  42. #endif
  43. #define BOOST_OS_QNX_NAME "QNX"
  44. #endif
  45. #include <boost/predef/detail/test.h>
  46. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_QNX,BOOST_OS_QNX_NAME)