| 1 | /* |
| 2 | Copyright (c) Microsoft Corporation 2014 |
| 3 | Copyright Rene Rivera 2015 |
| 4 | Distributed under the Boost Software License, Version 1.0. |
| 5 | (See accompanying file LICENSE_1_0.txt or copy at |
| 6 | http://www.boost.org/LICENSE_1_0.txt) |
| 7 | */ |
| 8 | |
| 9 | #ifndef BOOST_PREDEF_PLAT_WINDOWS_RUNTIME_H |
| 10 | #define BOOST_PREDEF_PLAT_WINDOWS_RUNTIME_H |
| 11 | |
| 12 | #include <boost/predef/make.h> |
| 13 | #include <boost/predef/os/windows.h> |
| 14 | #include <boost/predef/platform/windows_phone.h> |
| 15 | #include <boost/predef/platform/windows_store.h> |
| 16 | #include <boost/predef/version_number.h> |
| 17 | |
| 18 | /*` |
| 19 | [heading `BOOST_PLAT_WINDOWS_RUNTIME`] |
| 20 | |
| 21 | Deprecated. |
| 22 | |
| 23 | [@https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide UWP] |
| 24 | for Windows Phone or Store development. This does not align to the existing development model for |
| 25 | UWP and is deprecated. Use one of the other `BOOST_PLAT_WINDOWS_*`definitions instead. |
| 26 | |
| 27 | [table |
| 28 | [[__predef_symbol__] [__predef_version__]] |
| 29 | |
| 30 | [[`BOOST_PLAT_WINDOWS_PHONE`] [__predef_detection__]] |
| 31 | [[`BOOST_PLAT_WINDOWS_STORE`] [__predef_detection__]] |
| 32 | ] |
| 33 | */ |
| 34 | |
| 35 | #define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 36 | |
| 37 | #if BOOST_OS_WINDOWS && \ |
| 38 | (BOOST_PLAT_WINDOWS_STORE || BOOST_PLAT_WINDOWS_PHONE) |
| 39 | # undef BOOST_PLAT_WINDOWS_RUNTIME |
| 40 | # define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE |
| 41 | #endif |
| 42 | |
| 43 | #if BOOST_PLAT_WINDOWS_RUNTIME |
| 44 | # define BOOST_PLAT_WINDOWS_RUNTIME_AVAILABLE |
| 45 | # include <boost/predef/detail/platform_detected.h> |
| 46 | #endif |
| 47 | |
| 48 | #define BOOST_PLAT_WINDOWS_RUNTIME_NAME "Windows Runtime" |
| 49 | |
| 50 | #endif |
| 51 | |
| 52 | #include <boost/predef/detail/test.h> |
| 53 | BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_RUNTIME,BOOST_PLAT_WINDOWS_RUNTIME_NAME) |
| 54 | |