| 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 | |
| 8 | #ifndef BOOST_PREDEF_OS_QNXNTO_H |
| 9 | #define BOOST_PREDEF_OS_QNXNTO_H |
| 10 | |
| 11 | #include <boost/predef/version_number.h> |
| 12 | #include <boost/predef/make.h> |
| 13 | |
| 14 | /*` |
| 15 | [heading `BOOST_OS_QNX`] |
| 16 | |
| 17 | [@http://en.wikipedia.org/wiki/QNX QNX] operating system. |
| 18 | Version number available as major, and minor if possible. And |
| 19 | version 4 is specifically detected. |
| 20 | |
| 21 | [table |
| 22 | [[__predef_symbol__] [__predef_version__]] |
| 23 | |
| 24 | [[`__QNX__`] [__predef_detection__]] |
| 25 | [[`__QNXNTO__`] [__predef_detection__]] |
| 26 | |
| 27 | [[`_NTO_VERSION`] [V.R.0]] |
| 28 | [[`__QNX__`] [4.0.0]] |
| 29 | ] |
| 30 | */ |
| 31 | |
| 32 | #define BOOST_OS_QNX BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 33 | |
| 34 | #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ |
| 35 | defined(__QNX__) || defined(__QNXNTO__) \ |
| 36 | ) |
| 37 | # undef BOOST_OS_QNX |
| 38 | # if !defined(BOOST_OS_QNX) && defined(_NTO_VERSION) |
| 39 | # define BOOST_OS_QNX BOOST_PREDEF_MAKE_10_VVRR(_NTO_VERSION) |
| 40 | # endif |
| 41 | # if !defined(BOOST_OS_QNX) && defined(__QNX__) |
| 42 | # define BOOST_OS_QNX BOOST_VERSION_NUMBER(4,0,0) |
| 43 | # endif |
| 44 | # if !defined(BOOST_OS_QNX) |
| 45 | # define BOOST_OS_QNX BOOST_VERSION_NUMBER_AVAILABLE |
| 46 | # endif |
| 47 | #endif |
| 48 | |
| 49 | #if BOOST_OS_QNX |
| 50 | # define BOOST_OS_QNX_AVAILABLE |
| 51 | # include <boost/predef/detail/os_detected.h> |
| 52 | #endif |
| 53 | |
| 54 | #define BOOST_OS_QNX_NAME "QNX" |
| 55 | |
| 56 | #endif |
| 57 | |
| 58 | #include <boost/predef/detail/test.h> |
| 59 | BOOST_PREDEF_DECLARE_TEST(BOOST_OS_QNX,BOOST_OS_QNX_NAME) |
| 60 | |