macos.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_MACOS_H
  8. #define BOOST_PREDEF_OS_MACOS_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_OS_MACOS`]
  13. [@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`macintosh`] [__predef_detection__]]
  17. [[`Macintosh`] [__predef_detection__]]
  18. [[`__APPLE__`] [__predef_detection__]]
  19. [[`__MACH__`] [__predef_detection__]]
  20. [[`__APPLE__`, `__MACH__`] [10.0.0]]
  21. [[ /otherwise/ ] [9.0.0]]
  22. ]
  23. */
  24. #define BOOST_OS_MACOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
  25. #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
  26. defined(macintosh) || defined(Macintosh) || \
  27. (defined(__APPLE__) && defined(__MACH__)) \
  28. )
  29. # undef BOOST_OS_MACOS
  30. # if !defined(BOOST_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
  31. # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(10,0,0)
  32. # endif
  33. # if !defined(BOOST_OS_MACOS)
  34. # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(9,0,0)
  35. # endif
  36. #endif
  37. #if BOOST_OS_MACOS
  38. # define BOOST_OS_MACOS_AVAILABLE
  39. # include <boost/predef/detail/os_detected.h>
  40. #endif
  41. #define BOOST_OS_MACOS_NAME "Mac OS"
  42. #include <boost/predef/detail/test.h>
  43. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,BOOST_OS_MACOS_NAME)
  44. #endif