/* 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 ACTIV_BOOST_PREDEF_LIBRARY_C_GNU_H #define ACTIV_BOOST_PREDEF_LIBRARY_C_GNU_H #include #include #include #if defined(__STDC__) #include #elif defined(__cplusplus) #include #endif /* tag::reference[] = `ACTIV_BOOST_LIB_C_GNU` http://en.wikipedia.org/wiki/Glibc[GNU glibc] Standard C library. Version number available as major, and minor. [options="header"] |=== | {predef_symbol} | {predef_version} | `+__GLIBC__+` | {predef_detection} | `+__GNU_LIBRARY__+` | {predef_detection} | `+__GLIBC__+`, `+__GLIBC_MINOR__+` | V.R.0 | `+__GNU_LIBRARY__+`, `+__GNU_LIBRARY_MINOR__+` | V.R.0 |=== */ // end::reference[] #define ACTIV_BOOST_LIB_C_GNU ACTIV_BOOST_VERSION_NUMBER_NOT_AVAILABLE #if defined(__GLIBC__) || defined(__GNU_LIBRARY__) # undef ACTIV_BOOST_LIB_C_GNU # if defined(__GLIBC__) # define ACTIV_BOOST_LIB_C_GNU \ ACTIV_BOOST_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0) # else # define ACTIV_BOOST_LIB_C_GNU \ ACTIV_BOOST_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0) # endif #endif #if ACTIV_BOOST_LIB_C_GNU # define ACTIV_BOOST_LIB_C_GNU_AVAILABLE #endif #define ACTIV_BOOST_LIB_C_GNU_NAME "GNU" #endif #include ACTIV_BOOST_PREDEF_DECLARE_TEST(ACTIV_BOOST_LIB_C_GNU,ACTIV_BOOST_LIB_C_GNU_NAME)