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 BOOST_PREDEF_PLAT_MINGW64_H
9#define BOOST_PREDEF_PLAT_MINGW64_H
10
11#include <boost/predef/version_number.h>
12#include <boost/predef/make.h>
13
14/*`
15[heading `BOOST_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 BOOST_PLAT_MINGW64 BOOST_VERSION_NUMBER_NOT_AVAILABLE
30
31#if defined(__MINGW64__)
32# include <_mingw.h>
33# if !defined(BOOST_PLAT_MINGW64_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR))
34# define BOOST_PLAT_MINGW64_DETECTION \
35 BOOST_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0)
36# endif
37# if !defined(BOOST_PLAT_MINGW64_DETECTION)
38# define BOOST_PLAT_MINGW64_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
39# endif
40#endif
41
42#ifdef BOOST_PLAT_MINGW64_DETECTION
43# define BOOST_PLAT_MINGW64_AVAILABLE
44# if defined(BOOST_PREDEF_DETAIL_PLAT_DETECTED)
45# define BOOST_PLAT_MINGW64_EMULATED BOOST_PLAT_MINGW64_DETECTION
46# else
47# undef BOOST_PLAT_MINGW64
48# define BOOST_PLAT_MINGW64 BOOST_PLAT_MINGW64_DETECTION
49# endif
50# include <boost/predef/detail/platform_detected.h>
51#endif
52
53#define BOOST_PLAT_MINGW64_NAME "MinGW-w64"
54
55#endif
56
57#include <boost/predef/detail/test.h>
58BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64,BOOST_PLAT_MINGW64_NAME)
59
60#ifdef BOOST_PLAT_MINGW64_EMULATED
61#include <boost/predef/detail/test.h>
62BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64_EMULATED,BOOST_PLAT_MINGW64_NAME)
63#endif
64