Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:48:05

0001 /*
0002 Copyright Rene Rivera 2008-2015
0003 Distributed under the Boost Software License, Version 1.0.
0004 (See accompanying file LICENSE_1_0.txt or copy at
0005 http://www.boost.org/LICENSE_1_0.txt)
0006 */
0007 
0008 #ifndef BOOST_PREDEF_LIBRARY_C_GNU_H
0009 #define BOOST_PREDEF_LIBRARY_C_GNU_H
0010 
0011 #include <boost/predef/version_number.h>
0012 #include <boost/predef/make.h>
0013 
0014 #include <boost/predef/library/c/_prefix.h>
0015 
0016 #if defined(__STDC__)
0017 #include <stddef.h>
0018 #elif defined(__cplusplus)
0019 #include <cstddef>
0020 #endif
0021 
0022 /* tag::reference[]
0023 = `BOOST_LIB_C_GNU`
0024 
0025 http://en.wikipedia.org/wiki/Glibc[GNU glibc] Standard C library.
0026 Version number available as major, and minor.
0027 
0028 [options="header"]
0029 |===
0030 | {predef_symbol} | {predef_version}
0031 
0032 | `+__GLIBC__+` | {predef_detection}
0033 | `+__GNU_LIBRARY__+` | {predef_detection}
0034 
0035 | `+__GLIBC__+`, `+__GLIBC_MINOR__+` | V.R.0
0036 | `+__GNU_LIBRARY__+`, `+__GNU_LIBRARY_MINOR__+` | V.R.0
0037 |===
0038 */ // end::reference[]
0039 
0040 #define BOOST_LIB_C_GNU BOOST_VERSION_NUMBER_NOT_AVAILABLE
0041 
0042 #if defined(__GLIBC__) || defined(__GNU_LIBRARY__)
0043 #   undef BOOST_LIB_C_GNU
0044 #   if defined(__GLIBC__)
0045 #       define BOOST_LIB_C_GNU \
0046             BOOST_VERSION_NUMBER(__GLIBC__,__GLIBC_MINOR__,0)
0047 #   else
0048 #       define BOOST_LIB_C_GNU \
0049             BOOST_VERSION_NUMBER(__GNU_LIBRARY__,__GNU_LIBRARY_MINOR__,0)
0050 #   endif
0051 #endif
0052 
0053 #if BOOST_LIB_C_GNU
0054 #   define BOOST_LIB_C_GNU_AVAILABLE
0055 #endif
0056 
0057 #define BOOST_LIB_C_GNU_NAME "GNU"
0058 
0059 #endif
0060 
0061 #include <boost/predef/detail/test.h>
0062 BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_GNU,BOOST_LIB_C_GNU_NAME)