unix.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. Copyright Redshift Software, Inc. 2008-2013
  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_UNIX_H
  8. #define BOOST_PREDEF_OS_UNIX_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_OS_UNIX`]
  13. [@http://en.wikipedia.org/wiki/Unix Unix Environment] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`unix`] [__predef_detection__]]
  17. [[`__unix`] [__predef_detection__]]
  18. [[`_XOPEN_SOURCE`] [__predef_detection__]]
  19. [[`_POSIX_SOURCE`] [__predef_detection__]]
  20. ]
  21. */
  22. #define BOOST_OS_UNIX BOOST_VERSION_NUMBER_NOT_AVAILABLE
  23. #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
  24. defined(unix) || defined(__unix) || \
  25. defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) \
  26. )
  27. # undef BOOST_OS_UNIX
  28. # define BOOST_OS_UNIX BOOST_VERSION_NUMBER_AVAILABLE
  29. #endif
  30. #if BOOST_OS_UNIX
  31. # define BOOST_OS_UNIX_AVAILABLE
  32. # include <boost/predef/detail/os_detected.h>
  33. #endif
  34. #define BOOST_OS_UNIX_NAME "Unix Environment"
  35. /*`
  36. [heading `BOOST_OS_SVR4`]
  37. [@http://en.wikipedia.org/wiki/UNIX_System_V SVR4 Environment] operating system.
  38. [table
  39. [[__predef_symbol__] [__predef_version__]]
  40. [[`__sysv__`] [__predef_detection__]]
  41. [[`__SVR4`] [__predef_detection__]]
  42. [[`__svr4__`] [__predef_detection__]]
  43. [[`_SYSTYPE_SVR4`] [__predef_detection__]]
  44. ]
  45. */
  46. #define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_NOT_AVAILABLE
  47. #if defined(__sysv__) || defined(__SVR4) || \
  48. defined(__svr4__) || defined(_SYSTYPE_SVR4)
  49. # undef BOOST_OS_SVR4
  50. # define BOOST_OS_SVR4 BOOST_VERSION_NUMBER_AVAILABLE
  51. #endif
  52. #if BOOST_ARCH_ALPHA
  53. # define _AVAILABLE
  54. #endif
  55. #define BOOST_OS_SVR4_NAME "SVR4 Environment"
  56. #include <boost/predef/detail/test.h>
  57. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_UNIX,BOOST_OS_UNIX_NAME)
  58. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_SVR4,BOOST_OS_SVR4_NAME)
  59. #endif