Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:06

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Copyright Franz Detro 2014
0004 Distributed under the Boost Software License, Version 1.0.
0005 (See accompanying file LICENSE_1_0.txt or copy at
0006 http://www.boost.org/LICENSE_1_0.txt)
0007 */
0008 
0009 #ifndef BOOST_PREDEF_OS_MACOS_H
0010 #define BOOST_PREDEF_OS_MACOS_H
0011 
0012 /* Special case: iOS will define the same predefs as MacOS, and additionally
0013  '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__'. We can guard against that,
0014  but only if we detect iOS first. Hence we will force include iOS detection
0015  * before doing any MacOS detection.
0016  */
0017 #include <boost/predef/os/ios.h>
0018 
0019 #include <boost/predef/version_number.h>
0020 #include <boost/predef/make.h>
0021 
0022 /* tag::reference[]
0023 = `BOOST_OS_MACOS`
0024 
0025 http://en.wikipedia.org/wiki/Mac_OS[Mac OS] operating system.
0026 
0027 [options="header"]
0028 |===
0029 | {predef_symbol} | {predef_version}
0030 
0031 | `macintosh` | {predef_detection}
0032 | `Macintosh` | {predef_detection}
0033 | `+__APPLE__+` | {predef_detection}
0034 | `+__MACH__+` | {predef_detection}
0035 
0036 | `+__APPLE__+`, `+__MACH__+` | 10.0.0
0037 | `_otherwise_` | 9.0.0
0038 |===
0039 */ // end::reference[]
0040 
0041 #define BOOST_OS_MACOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
0042 
0043 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
0044     defined(macintosh) || defined(Macintosh) || \
0045     (defined(__APPLE__) && defined(__MACH__)) \
0046     )
0047 #   undef BOOST_OS_MACOS
0048 #   if !defined(BOOST_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
0049 #       define BOOST_OS_MACOS BOOST_VERSION_NUMBER(10,0,0)
0050 #   endif
0051 #   if !defined(BOOST_OS_MACOS)
0052 #       define BOOST_OS_MACOS BOOST_VERSION_NUMBER(9,0,0)
0053 #   endif
0054 #endif
0055 
0056 #if BOOST_OS_MACOS
0057 #   define BOOST_OS_MACOS_AVAILABLE
0058 #   include <boost/predef/detail/os_detected.h>
0059 #endif
0060 
0061 #define BOOST_OS_MACOS_NAME "Mac OS"
0062 
0063 #endif
0064 
0065 #include <boost/predef/detail/test.h>
0066 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,BOOST_OS_MACOS_NAME)