2 Copyright Rene Rivera 2008-2015
3 Copyright Franz Detro 2014
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)
9 #ifndef BOOST_PREDEF_OS_MACOS_H
10 #define BOOST_PREDEF_OS_MACOS_H
12 /* Special case: iOS will define the same predefs as MacOS, and additionally
13 '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__'. We can guard against that,
14 but only if we detect iOS first. Hence we will force include iOS detection
15 * before doing any MacOS detection.
17 #include <boost/predef/os/ios.h>
19 #include <boost/predef/version_number.h>
20 #include <boost/predef/make.h>
23 [heading `BOOST_OS_MACOS`]
25 [@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system.
28 [[__predef_symbol__] [__predef_version__]]
30 [[`macintosh`] [__predef_detection__]]
31 [[`Macintosh`] [__predef_detection__]]
32 [[`__APPLE__`] [__predef_detection__]]
33 [[`__MACH__`] [__predef_detection__]]
35 [[`__APPLE__`, `__MACH__`] [10.0.0]]
36 [[ /otherwise/ ] [9.0.0]]
40 #define BOOST_OS_MACOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
42 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
43 defined(macintosh) || defined(Macintosh) || \
44 (defined(__APPLE__) && defined(__MACH__)) \
46 # undef BOOST_OS_MACOS
47 # if !defined(BOOST_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
48 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(10,0,0)
50 # if !defined(BOOST_OS_MACOS)
51 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(9,0,0)
56 # define BOOST_OS_MACOS_AVAILABLE
57 # include <boost/predef/detail/os_detected.h>
60 #define BOOST_OS_MACOS_NAME "Mac OS"
64 #include <boost/predef/detail/test.h>
65 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,BOOST_OS_MACOS_NAME)