annotate DEPENDENCIES/generic/include/boost/predef/os/macos.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 /*
Chris@101 2 Copyright Rene Rivera 2008-2013
Chris@101 3 Copyright Franz Detro 2014
Chris@16 4 Distributed under the Boost Software License, Version 1.0.
Chris@16 5 (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 */
Chris@16 8
Chris@16 9 #ifndef BOOST_PREDEF_OS_MACOS_H
Chris@16 10 #define BOOST_PREDEF_OS_MACOS_H
Chris@16 11
Chris@101 12 /* Special case: iOS will define the same predefs as MacOS, and additionally
Chris@101 13 '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__'. We can guard against that,
Chris@101 14 but only if we detect iOS first. Hence we will force include iOS detection
Chris@101 15 * before doing any MacOS detection.
Chris@101 16 */
Chris@101 17 #include <boost/predef/os/ios.h>
Chris@101 18
Chris@16 19 #include <boost/predef/version_number.h>
Chris@16 20 #include <boost/predef/make.h>
Chris@16 21
Chris@16 22 /*`
Chris@16 23 [heading `BOOST_OS_MACOS`]
Chris@16 24
Chris@16 25 [@http://en.wikipedia.org/wiki/Mac_OS Mac OS] operating system.
Chris@16 26
Chris@16 27 [table
Chris@16 28 [[__predef_symbol__] [__predef_version__]]
Chris@16 29
Chris@16 30 [[`macintosh`] [__predef_detection__]]
Chris@16 31 [[`Macintosh`] [__predef_detection__]]
Chris@16 32 [[`__APPLE__`] [__predef_detection__]]
Chris@16 33 [[`__MACH__`] [__predef_detection__]]
Chris@16 34
Chris@16 35 [[`__APPLE__`, `__MACH__`] [10.0.0]]
Chris@16 36 [[ /otherwise/ ] [9.0.0]]
Chris@16 37 ]
Chris@16 38 */
Chris@16 39
Chris@16 40 #define BOOST_OS_MACOS BOOST_VERSION_NUMBER_NOT_AVAILABLE
Chris@16 41
Chris@101 42 #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
Chris@16 43 defined(macintosh) || defined(Macintosh) || \
Chris@16 44 (defined(__APPLE__) && defined(__MACH__)) \
Chris@16 45 )
Chris@16 46 # undef BOOST_OS_MACOS
Chris@16 47 # if !defined(BOOST_OS_MACOS) && defined(__APPLE__) && defined(__MACH__)
Chris@16 48 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(10,0,0)
Chris@16 49 # endif
Chris@16 50 # if !defined(BOOST_OS_MACOS)
Chris@16 51 # define BOOST_OS_MACOS BOOST_VERSION_NUMBER(9,0,0)
Chris@16 52 # endif
Chris@16 53 #endif
Chris@16 54
Chris@16 55 #if BOOST_OS_MACOS
Chris@16 56 # define BOOST_OS_MACOS_AVAILABLE
Chris@16 57 # include <boost/predef/detail/os_detected.h>
Chris@16 58 #endif
Chris@16 59
Chris@16 60 #define BOOST_OS_MACOS_NAME "Mac OS"
Chris@16 61
Chris@16 62 #include <boost/predef/detail/test.h>
Chris@16 63 BOOST_PREDEF_DECLARE_TEST(BOOST_OS_MACOS,BOOST_OS_MACOS_NAME)
Chris@16 64
Chris@16 65
Chris@16 66 #endif