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)
8 #ifndef BOOST_PREDEF_OS_MACOS_H
9 #define BOOST_PREDEF_OS_MACOS_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_OS_MACOS`]
17 [@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system.
20 [[__predef_symbol__] [__predef_version__]]
22 [[`macintosh`] [__predef_detection__]]
23 [[`Macintosh`] [__predef_detection__]]
24 [[`__APPLE__`] [__predef_detection__]]
25 [[`__MACH__`] [__predef_detection__]]
27 [[`__APPLE__`, `__MACH__`] [10.0.0]]
28 [[ /otherwise/ ] [9.0.0]]
32 #define BOOST_OS_MACOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
34 #if !BOOST_PREDEF_DETAIL_OS_DETECTED && ( \
35 defined(macintosh) || defined(Macintosh) || \
36 (defined(__APPLE__) && defined(__MACH__)) \
38 # undef BOOST_OS_MACOS
39 # if !defined(BOOST_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
40 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(10,0,0)
42 # if !defined(BOOST_OS_MACOS)
43 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(9,0,0)
48 # define BOOST_OS_MACOS_AVAILABLE
49 # include <boost/predef/detail/os_detected.h>
52 #define BOOST_OS_MACOS_NAME "Mac OS"
54 #include <boost/predef/detail/test.h>
55 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,BOOST_OS_MACOS_NAME)