Files

53 lines
1.4 KiB
C

/*
Copyright Franz Detro 2014
Copyright Rene Rivera 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef ACTIV_BOOST_PREDEF_OS_IOS_H
#define ACTIV_BOOST_PREDEF_OS_IOS_H
#include <ActivBoost/predef/version_number.h>
#include <ActivBoost/predef/make.h>
/* tag::reference[]
= `ACTIV_BOOST_OS_IOS`
http://en.wikipedia.org/wiki/iOS[iOS] operating system.
[options="header"]
|===
| {predef_symbol} | {predef_version}
| `+__APPLE__+` | {predef_detection}
| `+__MACH__+` | {predef_detection}
| `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | {predef_detection}
| `+__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+` | +__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__+*1000
|===
*/ // end::reference[]
#define ACTIV_BOOST_OS_IOS ACTIV_BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if !defined(ACTIV_BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
defined(__APPLE__) && defined(__MACH__) && \
defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) \
)
# undef ACTIV_BOOST_OS_IOS
# define ACTIV_BOOST_OS_IOS (__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__*1000)
#endif
#if ACTIV_BOOST_OS_IOS
# define ACTIV_BOOST_OS_IOS_AVAILABLE
# include <ActivBoost/predef/detail/os_detected.h>
#endif
#define ACTIV_BOOST_OS_IOS_NAME "iOS"
#endif
#include <ActivBoost/predef/detail/test.h>
ACTIV_BOOST_PREDEF_DECLARE_TEST(ACTIV_BOOST_OS_IOS,ACTIV_BOOST_OS_IOS_NAME)