MessagePack for C
msgpack
predef
platform
windows_uwp.h
Go to the documentation of this file.
1
/*
2
Copyright James E. King III, 2017
3
Distributed under the Boost Software License, Version 1.0.
4
(See accompanying file LICENSE_1_0.txt or copy at
5
http://www.boost.org/LICENSE_1_0.txt)
6
*/
7
8
#ifndef MSGPACK_PREDEF_PLAT_WINDOWS_UWP_H
9
#define MSGPACK_PREDEF_PLAT_WINDOWS_UWP_H
10
11
#include <
msgpack/predef/make.h
>
12
#include <
msgpack/predef/os/windows.h
>
13
#include <
msgpack/predef/version_number.h
>
14
15
/*`
16
[heading `MSGPACK_PLAT_WINDOWS_UWP`]
17
18
[@http://docs.microsoft.com/windows/uwp/ Universal Windows Platform]
19
is available if the current development environment is capable of targeting
20
UWP development.
21
22
[table
23
[[__predef_symbol__] [__predef_version__]]
24
25
[[`__MINGW64_VERSION_MAJOR` from `_mingw.h`] [`>= 3`]]
26
[[`VER_PRODUCTBUILD` from `ntverp.h`] [`>= 9200`]]
27
]
28
*/
29
30
#define MSGPACK_PLAT_WINDOWS_UWP MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
31
#define MSGPACK_PLAT_WINDOWS_SDK_VERSION MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
32
33
#if MSGPACK_OS_WINDOWS
34
// MinGW (32-bit) has no ntverp.h header
35
#if !defined(__MINGW32__)
36
# include <ntverp.h>
37
# undef MSGPACK_PLAT_WINDOWS_SDK_VERSION
38
# define MSGPACK_PLAT_WINDOWS_SDK_VERSION MSGPACK_VERSION_NUMBER(0, 0, VER_PRODUCTBUILD)
39
#endif
40
41
// 9200 is Windows SDK 8.0 from ntverp.h which introduced family support
42
#if ((MSGPACK_PLAT_WINDOWS_SDK_VERSION >= MSGPACK_VERSION_NUMBER(0, 0, 9200)) || \
43
(defined(__MINGW64__) && __MINGW64_VERSION_MAJOR >= 3))
44
# undef MSGPACK_PLAT_WINDOWS_UWP
45
# define MSGPACK_PLAT_WINDOWS_UWP MSGPACK_VERSION_NUMBER_AVAILABLE
46
#endif
47
#endif
48
49
#if MSGPACK_PLAT_WINDOWS_UWP
50
# define MSGPACK_PLAT_WINDOWS_UWP_AVAILABLE
51
# include <
msgpack/predef/detail/platform_detected.h
>
52
# include <winapifamily.h>
// Windows SDK
53
#endif
54
55
#define MSGPACK_PLAT_WINDOWS_UWP_NAME "Universal Windows Platform"
56
57
#endif
58
59
#include <
msgpack/predef/detail/test.h
>
60
MSGPACK_PREDEF_DECLARE_TEST
(
MSGPACK_PLAT_WINDOWS_UWP
,
MSGPACK_PLAT_WINDOWS_UWP_NAME
)
version_number.h
test.h
windows.h
MSGPACK_PLAT_WINDOWS_UWP_NAME
#define MSGPACK_PLAT_WINDOWS_UWP_NAME
Definition:
windows_uwp.h:55
MSGPACK_PLAT_WINDOWS_UWP
#define MSGPACK_PLAT_WINDOWS_UWP
Definition:
windows_uwp.h:30
MSGPACK_PREDEF_DECLARE_TEST
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition:
test.h:13
platform_detected.h
make.h
Generated by
1.8.17