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 /* tag::reference[]
19 = `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 [options="header"]
28 |===
29 | {predef_symbol} | {predef_version}
30 
31 | `BOOST_PLAT_WINDOWS_PHONE` | {predef_detection}
32 | `BOOST_PLAT_WINDOWS_STORE` | {predef_detection}
33 |===
34 */ // end::reference[]
35 
36 #define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE
37 
38 #if BOOST_OS_WINDOWS && \
39     (BOOST_PLAT_WINDOWS_STORE || BOOST_PLAT_WINDOWS_PHONE)
40 #   undef BOOST_PLAT_WINDOWS_RUNTIME
41 #   define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE
42 #endif
43 
44 #if BOOST_PLAT_WINDOWS_RUNTIME
45 #   define BOOST_PLAT_WINDOWS_RUNTIME_AVAILABLE
46 #   include <boost/predef/detail/platform_detected.h>
47 #endif
48 
49 #define BOOST_PLAT_WINDOWS_RUNTIME_NAME "Windows Runtime"
50 
51 #endif
52 
53 #include <boost/predef/detail/test.h>
54 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_RUNTIME,BOOST_PLAT_WINDOWS_RUNTIME_NAME)
55