haiku.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifndef BOOST_PREDEF_OS_HAIKU_H
  9. #define BOOST_PREDEF_OS_HAIKU_H
  10. #include <boost/predef/version_number.h>
  11. #include <boost/predef/make.h>
  12. /* tag::reference[]
  13. = `BOOST_OS_HAIKU`
  14. http://en.wikipedia.org/wiki/Haiku_(operating_system)[Haiku] operating system.
  15. [options="header"]
  16. |===
  17. | {predef_symbol} | {predef_version}
  18. | `+__HAIKU__+` | {predef_detection}
  19. |===
  20. */ // end::reference[]
  21. #define BOOST_OS_HAIKU BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  23. defined(__HAIKU__) \
  24. )
  25. # undef BOOST_OS_HAIKU
  26. # define BOOST_OS_HAIKU BOOST_VERSION_NUMBER_AVAILABLE
  27. #endif
  28. #if BOOST_OS_HAIKU
  29. # define BOOST_OS_HAIKU_AVAILABLE
  30. # include <boost/predef/detail/os_detected.h>
  31. #endif
  32. #define BOOST_OS_HAIKU_NAME "Haiku"
  33. #endif
  34. #include <boost/predef/detail/test.h>
  35. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_HAIKU,BOOST_OS_HAIKU_NAME)