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_LIBRARY_C_UC_H
9 #define BOOST_PREDEF_LIBRARY_C_UC_H
10 
11 #include <boost/predef/library/c/_prefix.h>
12 
13 #include <boost/predef/version_number.h>
14 #include <boost/predef/make.h>
15 
16 /* tag::reference[]
17 = `BOOST_LIB_C_UC`
18 
19 http://en.wikipedia.org/wiki/Uclibc[uClibc] Standard C library.
20 
21 [options="header"]
22 |===
23 | {predef_symbol} | {predef_version}
24 
25 | `+__UCLIBC__+` | {predef_detection}
26 
27 | `+__UCLIBC_MAJOR__+`, `+__UCLIBC_MINOR__+`, `+__UCLIBC_SUBLEVEL__+` | V.R.P
28 |===
29 */ // end::reference[]
30 
31 #define BOOST_LIB_C_UC BOOST_VERSION_NUMBER_NOT_AVAILABLE
32 
33 #if defined(__UCLIBC__)
34 #   undef BOOST_LIB_C_UC
35 #   define BOOST_LIB_C_UC BOOST_VERSION_NUMBER(\
36         __UCLIBC_MAJOR__,__UCLIBC_MINOR__,__UCLIBC_SUBLEVEL__)
37 #endif
38 
39 #if BOOST_LIB_C_UC
40 #   define BOOST_LIB_C_UC_AVAILABLE
41 #endif
42 
43 #define BOOST_LIB_C_UC_NAME "uClibc"
44 
45 #endif
46 
47 #include <boost/predef/detail/test.h>
48 BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_UC,BOOST_LIB_C_UC_NAME)
49