uc.h 1.1 KB

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