]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/predef/library/c/gnu.h
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_LIBRARY_C_GNU_H
9 #define BOOST_PREDEF_LIBRARY_C_GNU_H
11 #include <boost/predef/version_number.h>
12 #include <boost/predef/make.h>
14 #include <boost/predef/library/c/_prefix.h>
18 #elif defined(__cplusplus)
25 http://en.wikipedia.org/wiki/Glibc[GNU glibc] Standard C library.
26 Version number available as major, and minor.
30 | {predef_symbol} | {predef_version}
32 | `+__GLIBC__+` | {predef_detection}
33 | `+__GNU_LIBRARY__+` | {predef_detection}
35 | `+__GLIBC__+`, `+__GLIBC_MINOR__+` | V.R.0
36 | `+__GNU_LIBRARY__+`, `+__GNU_LIBRARY_MINOR__+` | V.R.0
38 */ // end::reference[]
40 #define BOOST_LIB_C_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE
42 #if defined(__GLIBC__) || defined(__GNU_LIBRARY__)
43 # undef BOOST_LIB_C_GNU
44 # if defined(__GLIBC__)
45 # define BOOST_LIB_C_GNU \
46 BOOST_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0)
48 # define BOOST_LIB_C_GNU \
49 BOOST_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0)
54 # define BOOST_LIB_C_GNU_AVAILABLE
57 #define BOOST_LIB_C_GNU_NAME "GNU"
61 #include <boost/predef/detail/test.h>
62 BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_GNU
,BOOST_LIB_C_GNU_NAME
)