1/*
2Copyright James E. King III, 2017
3Distributed under the Boost Software License, Version 1.0.
4(See accompanying file LICENSE_1_0.txt or copy at
5http://www.boost.org/LICENSE_1_0.txt)
6*/
7
8#ifndef BOOST_PREDEF_PLAT_WINDOWS_SERVER_H
9#define BOOST_PREDEF_PLAT_WINDOWS_SERVER_H
10
11#include <boost/predef/make.h>
12#include <boost/predef/os/windows.h>
13#include <boost/predef/platform/windows_uwp.h>
14#include <boost/predef/version_number.h>
15
16/* tag::reference[]
17= `BOOST_PLAT_WINDOWS_SERVER`
18
19https://docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide[UWP]
20for Windows Server development.
21
22[options="header"]
23|===
24| {predef_symbol} | {predef_version}
25
26| `WINAPI_FAMILY == WINAPI_FAMILY_SERVER` | {predef_detection}
27|===
28*/ // end::reference[]
29
30#define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_NOT_AVAILABLE
31
32#if BOOST_OS_WINDOWS && \
33 defined(WINAPI_FAMILY_SERVER) && WINAPI_FAMILY == WINAPI_FAMILY_SERVER
34# undef BOOST_PLAT_WINDOWS_SERVER
35# define BOOST_PLAT_WINDOWS_SERVER BOOST_VERSION_NUMBER_AVAILABLE
36#endif
37
38#if BOOST_PLAT_WINDOWS_SERVER
39# define BOOST_PLAT_WINDOWS_SERVER_AVAILABLE
40# include <boost/predef/detail/platform_detected.h>
41#endif
42
43#define BOOST_PLAT_WINDOWS_SERVER_NAME "Windows Server"
44
45#endif
46
47#include <boost/predef/detail/test.h>
48BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_WINDOWS_SERVER,BOOST_PLAT_WINDOWS_SERVER_NAME)
49

source code of include/boost/predef/platform/windows_server.h