| 1 | /* |
| 2 | Copyright Jessica Hamilton 2014 |
| 3 | Copyright Rene Rivera 2014-2015 |
| 4 | Distributed under the Boost Software License, Version 1.0. |
| 5 | (See accompanying file LICENSE_1_0.txt or copy at |
| 6 | http://www.boost.org/LICENSE_1_0.txt) |
| 7 | */ |
| 8 | |
| 9 | #ifndef BOOST_PREDEF_OS_HAIKU_H |
| 10 | #define BOOST_PREDEF_OS_HAIKU_H |
| 11 | |
| 12 | #include <boost/predef/version_number.h> |
| 13 | #include <boost/predef/make.h> |
| 14 | |
| 15 | /* tag::reference[] |
| 16 | = `BOOST_OS_HAIKU` |
| 17 | |
| 18 | http://en.wikipedia.org/wiki/Haiku_(operating_system)[Haiku] operating system. |
| 19 | |
| 20 | [options="header"] |
| 21 | |=== |
| 22 | | {predef_symbol} | {predef_version} |
| 23 | |
| 24 | | `+__HAIKU__+` | {predef_detection} |
| 25 | |=== |
| 26 | */ // end::reference[] |
| 27 | |
| 28 | #define BOOST_OS_HAIKU BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 29 | |
| 30 | #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ |
| 31 | defined(__HAIKU__) \ |
| 32 | ) |
| 33 | # undef BOOST_OS_HAIKU |
| 34 | # define BOOST_OS_HAIKU BOOST_VERSION_NUMBER_AVAILABLE |
| 35 | #endif |
| 36 | |
| 37 | #if BOOST_OS_HAIKU |
| 38 | # define BOOST_OS_HAIKU_AVAILABLE |
| 39 | # include <boost/predef/detail/os_detected.h> |
| 40 | #endif |
| 41 | |
| 42 | #define BOOST_OS_HAIKU_NAME "Haiku" |
| 43 | |
| 44 | #endif |
| 45 | |
| 46 | #include <boost/predef/detail/test.h> |
| 47 | BOOST_PREDEF_DECLARE_TEST(BOOST_OS_HAIKU,BOOST_OS_HAIKU_NAME) |
| 48 | |