| 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_STORE_H |
| 10 | #define BOOST_PREDEF_PLAT_WINDOWS_STORE_H |
| 11 | |
| 12 | #include <boost/predef/make.h> |
| 13 | #include <boost/predef/os/windows.h> |
| 14 | #include <boost/predef/platform/windows_uwp.h> |
| 15 | #include <boost/predef/version_number.h> |
| 16 | |
| 17 | /* tag::reference[] |
| 18 | = `BOOST_PLAT_WINDOWS_STORE` |
| 19 | |
| 20 | https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP] |
| 21 | for Windows Store development. |
| 22 | |
| 23 | [options="header"] |
| 24 | |=== |
| 25 | | {predef_symbol} | {predef_version} |
| 26 | |
| 27 | | `WINAPI_FAMILY == WINAPI_FAMILY_PC_APP` | {predef_detection} |
| 28 | | `WINAPI_FAMILY == WINAPI_FAMILY_APP` (deprecated) | {predef_detection} |
| 29 | |=== |
| 30 | */ // end::reference[] |
| 31 | |
| 32 | #define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_NOT_AVAILABLE |
| 33 | |
| 34 | #if BOOST_OS_WINDOWS && \ |
| 35 | ((defined(WINAPI_FAMILY_PC_APP) && WINAPI_FAMILY == WINAPI_FAMILY_PC_APP) || \ |
| 36 | (defined(WINAPI_FAMILY_APP) && WINAPI_FAMILY == WINAPI_FAMILY_APP)) |
| 37 | # undef BOOST_PLAT_WINDOWS_STORE |
| 38 | # define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_AVAILABLE |
| 39 | #endif |
| 40 | |
| 41 | #if BOOST_PLAT_WINDOWS_STORE |
| 42 | # define BOOST_PLAT_WINDOWS_STORE_AVAILABLE |
| 43 | # include <boost/predef/detail/platform_detected.h> |
| 44 | #endif |
| 45 | |
| 46 | #define BOOST_PLAT_WINDOWS_STORE_NAME "Windows Store" |
| 47 | |
| 48 | #endif |
| 49 | |
| 50 | #include <boost/predef/detail/test.h> |
| 51 | BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_STORE,BOOST_PLAT_WINDOWS_STORE_NAME) |
| 52 | |