MessagePack for C
Loading...
Searching...
No Matches
mingw64.h
Go to the documentation of this file.
1/*
2Copyright Rene Rivera 2008-2015
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 MSGPACK_PREDEF_PLAT_MINGW64_H
9#define MSGPACK_PREDEF_PLAT_MINGW64_H
10
12#include <msgpack/predef/make.h>
13
14/*`
15[heading `MSGPACK_PLAT_MINGW64`]
16
17[@https://mingw-w64.org/ MinGW-w64] platform.
18Version number available as major, minor, and patch.
19
20[table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`__MINGW64__`] [__predef_detection__]]
24
25 [[`__MINGW64_VERSION_MAJOR`, `__MINGW64_VERSION_MINOR`] [V.R.0]]
26 ]
27 */
28
29#define MSGPACK_PLAT_MINGW64 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
30
31#if defined(__MINGW64__)
32# include <_mingw.h>
33# if !defined(MSGPACK_PLAT_MINGW64_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR))
34# define MSGPACK_PLAT_MINGW64_DETECTION \
35 MSGPACK_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0)
36# endif
37# if !defined(MSGPACK_PLAT_MINGW64_DETECTION)
38# define MSGPACK_PLAT_MINGW64_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
39# endif
40#endif
41
42#ifdef MSGPACK_PLAT_MINGW64_DETECTION
43# define MSGPACK_PLAT_MINGW64_AVAILABLE
44# if defined(MSGPACK_PREDEF_DETAIL_PLAT_DETECTED)
45# define MSGPACK_PLAT_MINGW64_EMULATED MSGPACK_PLAT_MINGW64_DETECTION
46# else
47# undef MSGPACK_PLAT_MINGW64
48# define MSGPACK_PLAT_MINGW64 MSGPACK_PLAT_MINGW64_DETECTION
49# endif
51#endif
52
53#define MSGPACK_PLAT_MINGW64_NAME "MinGW-w64"
54
55#endif
56
59
60#ifdef MSGPACK_PLAT_MINGW64_EMULATED
62MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_MINGW64_EMULATED,MSGPACK_PLAT_MINGW64_NAME)
63#endif
#define MSGPACK_PLAT_MINGW64
Definition mingw64.h:29
#define MSGPACK_PLAT_MINGW64_NAME
Definition mingw64.h:53
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13