1 | /* |
2 | Copyright Rene Rivera 2008-2015 |
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 BOOST_PREDEF_PLAT_MINGW32_H |
9 | #define BOOST_PREDEF_PLAT_MINGW32_H |
10 | |
11 | #include <boost/predef/version_number.h> |
12 | #include <boost/predef/make.h> |
13 | |
14 | /* tag::reference[] |
15 | = `BOOST_PLAT_MINGW32` |
16 | |
17 | http://www.mingw.org/[MinGW] platform. |
18 | Version number available as major, minor, and patch. |
19 | |
20 | [options="header"] |
21 | |=== |
22 | | {predef_symbol} | {predef_version} |
23 | |
24 | | `+__MINGW32__+` | {predef_detection} |
25 | |
26 | | `+__MINGW32_VERSION_MAJOR+`, `+__MINGW32_VERSION_MINOR+` | V.R.0 |
27 | |=== |
28 | */ // end::reference[] |
29 | |
30 | #define BOOST_PLAT_MINGW32 BOOST_VERSION_NUMBER_NOT_AVAILABLE |
31 | |
32 | #if defined(__MINGW32__) |
33 | # include <_mingw.h> |
34 | # if !defined(BOOST_PLAT_MINGW32_DETECTION) && (defined(__MINGW32_VERSION_MAJOR) && defined(__MINGW32_VERSION_MINOR)) |
35 | # define BOOST_PLAT_MINGW32_DETECTION \ |
36 | BOOST_VERSION_NUMBER(__MINGW32_VERSION_MAJOR,__MINGW32_VERSION_MINOR,0) |
37 | # endif |
38 | # if !defined(BOOST_PLAT_MINGW32_DETECTION) |
39 | # define BOOST_PLAT_MINGW32_DETECTION BOOST_VERSION_NUMBER_AVAILABLE |
40 | # endif |
41 | #endif |
42 | |
43 | #ifdef BOOST_PLAT_MINGW32_DETECTION |
44 | # define BOOST_PLAT_MINGW32_AVAILABLE |
45 | # if defined(BOOST_PREDEF_DETAIL_PLAT_DETECTED) |
46 | # define BOOST_PLAT_MINGW32_EMULATED BOOST_PLAT_MINGW32_DETECTION |
47 | # else |
48 | # undef BOOST_PLAT_MINGW32 |
49 | # define BOOST_PLAT_MINGW32 BOOST_PLAT_MINGW32_DETECTION |
50 | # endif |
51 | # include <boost/predef/detail/platform_detected.h> |
52 | #endif |
53 | |
54 | #define BOOST_PLAT_MINGW32_NAME "MinGW" |
55 | |
56 | #endif |
57 | |
58 | #include <boost/predef/detail/test.h> |
59 | BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW32,BOOST_PLAT_MINGW32_NAME) |
60 | |
61 | #ifdef BOOST_PLAT_MINGW32_EMULATED |
62 | #include <boost/predef/detail/test.h> |
63 | BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW32_EMULATED,BOOST_PLAT_MINGW32_NAME) |
64 | #endif |
65 | |