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_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 /* tag::reference[] 15 = `BOOST_PLAT_MINGW64` 16 17 https://mingw-w64.org/[MinGW-w64] platform. 18 Version number available as major, minor, and patch. 19 20 [options="header"] 21 |=== 22 | {predef_symbol} | {predef_version} 23 24 | `+__MINGW64__+` | {predef_detection} 25 26 | `+__MINGW64_VERSION_MAJOR+`, `+__MINGW64_VERSION_MINOR+` | V.R.0 27 |=== 28 */ // end::reference[] 29 30 #define BOOST_PLAT_MINGW64 BOOST_VERSION_NUMBER_NOT_AVAILABLE 31 32 #if defined(__MINGW64__) 33 # include <_mingw.h> 34 # if !defined(BOOST_PLAT_MINGW64_DETECTION) && (defined(__MINGW64_VERSION_MAJOR) && defined(__MINGW64_VERSION_MINOR)) 35 # define BOOST_PLAT_MINGW64_DETECTION \ 36 BOOST_VERSION_NUMBER(__MINGW64_VERSION_MAJOR,__MINGW64_VERSION_MINOR,0) 37 # endif 38 # if !defined(BOOST_PLAT_MINGW64_DETECTION) 39 # define BOOST_PLAT_MINGW64_DETECTION BOOST_VERSION_NUMBER_AVAILABLE 40 # endif 41 #endif 42 43 #ifdef BOOST_PLAT_MINGW64_DETECTION 44 # define BOOST_PLAT_MINGW64_AVAILABLE 45 # if defined(BOOST_PREDEF_DETAIL_PLAT_DETECTED) 46 # define BOOST_PLAT_MINGW64_EMULATED BOOST_PLAT_MINGW64_DETECTION 47 # else 48 # undef BOOST_PLAT_MINGW64 49 # define BOOST_PLAT_MINGW64 BOOST_PLAT_MINGW64_DETECTION 50 # endif 51 # include <boost/predef/detail/platform_detected.h> 52 #endif 53 54 #define BOOST_PLAT_MINGW64_NAME "MinGW-w64" 55 56 #endif 57 58 #include <boost/predef/detail/test.h> 59 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64,BOOST_PLAT_MINGW64_NAME) 60 61 #ifdef BOOST_PLAT_MINGW64_EMULATED 62 #include <boost/predef/detail/test.h> 63 BOOST_PREDEF_DECLARE_TEST(BOOST_PLAT_MINGW64_EMULATED,BOOST_PLAT_MINGW64_NAME) 64 #endif 65