/* Copyright Rene Rivera 2008-2015 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BHO_PREDEF_PLAT_MINGW32_H #define BHO_PREDEF_PLAT_MINGW32_H #include #include /* tag::reference[] = `BHO_PLAT_MINGW32` http://www.mingw.org/[MinGW] platform. Version number available as major, minor, and patch. [options="header"] |=== | {predef_symbol} | {predef_version} | `+__MINGW32__+` | {predef_detection} | `+__MINGW32_VERSION_MAJOR+`, `+__MINGW32_VERSION_MINOR+` | V.R.0 |=== */ // end::reference[] #define BHO_PLAT_MINGW32 BHO_VERSION_NUMBER_NOT_AVAILABLE #if defined(__MINGW32__) # include <_mingw.h> # if !defined(BHO_PLAT_MINGW32_DETECTION) && (defined(__MINGW32_VERSION_MAJOR) && defined(__MINGW32_VERSION_MINOR)) # define BHO_PLAT_MINGW32_DETECTION \ BHO_VERSION_NUMBER(__MINGW32_VERSION_MAJOR,__MINGW32_VERSION_MINOR,0) # endif # if !defined(BHO_PLAT_MINGW32_DETECTION) # define BHO_PLAT_MINGW32_DETECTION BHO_VERSION_NUMBER_AVAILABLE # endif #endif #ifdef BHO_PLAT_MINGW32_DETECTION # define BHO_PLAT_MINGW32_AVAILABLE # if defined(BHO_PREDEF_DETAIL_PLAT_DETECTED) # define BHO_PLAT_MINGW32_EMULATED BHO_PLAT_MINGW32_DETECTION # else # undef BHO_PLAT_MINGW32 # define BHO_PLAT_MINGW32 BHO_PLAT_MINGW32_DETECTION # endif # include #endif #define BHO_PLAT_MINGW32_NAME "MinGW" #endif #include BHO_PREDEF_DECLARE_TEST(BHO_PLAT_MINGW32,BHO_PLAT_MINGW32_NAME) #ifdef BHO_PLAT_MINGW32_EMULATED #include BHO_PREDEF_DECLARE_TEST(BHO_PLAT_MINGW32_EMULATED,BHO_PLAT_MINGW32_NAME) #endif