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_DESKTOP_H |
10 | #define BOOST_PREDEF_PLAT_WINDOWS_DESKTOP_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_DESKTOP` |
19 | |
20 | https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP] |
21 | for Windows Desktop development. Also available if the Platform SDK is too |
22 | old to support UWP. |
23 | |
24 | [options="header"] |
25 | |=== |
26 | | {predef_symbol} | {predef_version} |
27 | |
28 | | `WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP` | {predef_detection} |
29 | | `!BOOST_PLAT_WINDOWS_UWP` | {predef_detection} |
30 | |=== |
31 | */ // end::reference[] |
32 | |
33 | #define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_NOT_AVAILABLE |
34 | |
35 | #if BOOST_OS_WINDOWS && \ |
36 | ((defined(WINAPI_FAMILY_DESKTOP_APP) && WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) || \ |
37 | !BOOST_PLAT_WINDOWS_UWP) |
38 | # undef BOOST_PLAT_WINDOWS_DESKTOP |
39 | # define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_AVAILABLE |
40 | #endif |
41 | |
42 | #if BOOST_PLAT_WINDOWS_DESKTOP |
43 | # define BOOST_PLAT_WINDOWS_DESKTOP_AVAILABLE |
44 | # include <boost/predef/detail/platform_detected.h> |
45 | #endif |
46 | |
47 | #define BOOST_PLAT_WINDOWS_DESKTOP_NAME "Windows Desktop" |
48 | |
49 | #endif |
50 | |
51 | #include <boost/predef/detail/test.h> |
52 | BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_DESKTOP,BOOST_PLAT_WINDOWS_DESKTOP_NAME) |
53 | |