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)
8 #ifndef BOOST_PREDEF_PLAT_MINGW32_H
9 #define BOOST_PREDEF_PLAT_MINGW32_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
15 [heading `BOOST_PLAT_MINGW32`]
17 [@http://www.mingw.org/ MinGW] platform.
18 Version number available as major, minor, and patch.
21 [[__predef_symbol__] [__predef_version__]]
23 [[`__MINGW32__`] [__predef_detection__]]
25 [[`__MINGW32_VERSION_MAJOR`, `__MINGW32_VERSION_MINOR`] [V.R.0]]
29 #define BOOST_PLAT_MINGW32 BOOST_VERSION_NUMBER_NOT_AVAILABLE
31 #if defined(__MINGW32__)
33 # if !defined(BOOST_PLAT_MINGW32_DETECTION) && (defined(__MINGW32_VERSION_MAJOR) && defined(__MINGW32_VERSION_MINOR))
34 # define BOOST_PLAT_MINGW32_DETECTION \
35 BOOST_VERSION_NUMBER(__MINGW32_VERSION_MAJOR,__MINGW32_VERSION_MINOR,0)
37 # if !defined(BOOST_PLAT_MINGW32_DETECTION)
38 # define BOOST_PLAT_MINGW32_DETECTION BOOST_VERSION_NUMBER_AVAILABLE
42 #ifdef BOOST_PLAT_MINGW32_DETECTION
43 # define BOOST_PLAT_MINGW32_AVAILABLE
44 # if defined(BOOST_PREDEF_DETAIL_PLAT_DETECTED)
45 # define BOOST_PLAT_MINGW32_EMULATED BOOST_PLAT_MINGW32_DETECTION
47 # undef BOOST_PLAT_MINGW32
48 # define BOOST_PLAT_MINGW32 BOOST_PLAT_MINGW32_DETECTION
50 # include <boost/predef/detail/platform_detected.h>
53 #define BOOST_PLAT_MINGW32_NAME "MinGW"
57 #include <boost/predef/detail/test.h>
58 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW32
,BOOST_PLAT_MINGW32_NAME
)
60 #ifdef BOOST_PLAT_MINGW32_EMULATED
61 #include <boost/predef/detail/test.h>
62 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW32_EMULATED
,BOOST_PLAT_MINGW32_NAME
)