Brian Silverman | 44c68b1 | 2018-08-04 23:56:44 -0700 | [diff] [blame^] | 1 | /* |
| 2 | Copyright Rene Rivera 2015 |
| 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) |
| 6 | */ |
| 7 | |
| 8 | #ifndef BOOST_PREDEF_OS_ANDROID_H |
| 9 | #define BOOST_PREDEF_OS_ANDROID_H |
| 10 | |
| 11 | #include <boost/predef/version_number.h> |
| 12 | #include <boost/predef/make.h> |
| 13 | |
| 14 | /*` |
| 15 | [heading `BOOST_OS_ANDROID`] |
| 16 | |
| 17 | [@http://en.wikipedia.org/wiki/Android_%28operating_system%29 Android] operating system. |
| 18 | |
| 19 | [table |
| 20 | [[__predef_symbol__] [__predef_version__]] |
| 21 | |
| 22 | [[`__ANDROID__`] [__predef_detection__]] |
| 23 | ] |
| 24 | */ |
| 25 | |
| 26 | #define BOOST_OS_ANDROID BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 27 | |
| 28 | #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \ |
| 29 | defined(__ANDROID__) \ |
| 30 | ) |
| 31 | # undef BOOST_OS_ANDROID |
| 32 | # define BOOST_OS_ANDROID BOOST_VERSION_NUMBER_AVAILABLE |
| 33 | #endif |
| 34 | |
| 35 | #if BOOST_OS_ANDROID |
| 36 | # define BOOST_OS_ANDROID_AVAILABLE |
| 37 | # include <boost/predef/detail/os_detected.h> |
| 38 | #endif |
| 39 | |
| 40 | #define BOOST_OS_ANDROID_NAME "Android" |
| 41 | |
| 42 | #endif |
| 43 | |
| 44 | #include <boost/predef/detail/test.h> |
| 45 | BOOST_PREDEF_DECLARE_TEST(BOOST_OS_ANDROID,BOOST_OS_ANDROID_NAME) |