MessagePack for C
Loading...
Searching...
No Matches
mingw32.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_MINGW32_H
9#define MSGPACK_PREDEF_PLAT_MINGW32_H
10
12#include <msgpack/predef/make.h>
13
14/*`
15[heading `MSGPACK_PLAT_MINGW32`]
16
17[@http://www.mingw.org/ MinGW] platform.
18Version number available as major, minor, and patch.
19
20[table
21 [[__predef_symbol__] [__predef_version__]]
22
23 [[`__MINGW32__`] [__predef_detection__]]
24
25 [[`__MINGW32_VERSION_MAJOR`, `__MINGW32_VERSION_MINOR`] [V.R.0]]
26 ]
27 */
28
29#define MSGPACK_PLAT_MINGW32 MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
30
31#if defined(__MINGW32__)
32# include <_mingw.h>
33# if !defined(MSGPACK_PLAT_MINGW32_DETECTION) && (defined(__MINGW32_VERSION_MAJOR) && defined(__MINGW32_VERSION_MINOR))
34# define MSGPACK_PLAT_MINGW32_DETECTION \
35 MSGPACK_VERSION_NUMBER(__MINGW32_VERSION_MAJOR,__MINGW32_VERSION_MINOR,0)
36# endif
37# if !defined(MSGPACK_PLAT_MINGW32_DETECTION)
38# define MSGPACK_PLAT_MINGW32_DETECTION MSGPACK_VERSION_NUMBER_AVAILABLE
39# endif
40#endif
41
42#ifdef MSGPACK_PLAT_MINGW32_DETECTION
43# define MSGPACK_PLAT_MINGW32_AVAILABLE
44# if defined(MSGPACK_PREDEF_DETAIL_PLAT_DETECTED)
45# define MSGPACK_PLAT_MINGW32_EMULATED MSGPACK_PLAT_MINGW32_DETECTION
46# else
47# undef MSGPACK_PLAT_MINGW32
48# define MSGPACK_PLAT_MINGW32 MSGPACK_PLAT_MINGW32_DETECTION
49# endif
51#endif
52
53#define MSGPACK_PLAT_MINGW32_NAME "MinGW"
54
55#endif
56
59
60#ifdef MSGPACK_PLAT_MINGW32_EMULATED
62MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_PLAT_MINGW32_EMULATED,MSGPACK_PLAT_MINGW32_NAME)
63#endif
#define MSGPACK_PLAT_MINGW32_NAME
Definition mingw32.h:53
#define MSGPACK_PLAT_MINGW32
Definition mingw32.h:29
#define MSGPACK_PREDEF_DECLARE_TEST(x, s)
Definition test.h:13