uc.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /*`
  13. [heading `BOOST_LIB_C_UC`]
  14. [@http://en.wikipedia.org/wiki/Uclibc uClibc] Standard C library.
  15. [table
  16. [[__predef_symbol__] [__predef_version__]]
  17. [[`__UCLIBC__`] [__predef_detection__]]
  18. [[`__UCLIBC_MAJOR__`, `__UCLIBC_MINOR__`, `__UCLIBC_SUBLEVEL__`] [V.R.P]]
  19. ]
  20. */
  21. #define BOOST_LIB_C_UC BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if defined(__UCLIBC__)
  23. # undef BOOST_LIB_C_UC
  24. # define BOOST_LIB_C_UC BOOST_VERSION_NUMBER(\
  25. __UCLIBC_MAJOR__,__UCLIBC_MINOR__,__UCLIBC_SUBLEVEL__)
  26. #endif
  27. #if BOOST_LIB_C_UC
  28. # define BOOST_LIB_C_UC_AVAILABLE
  29. #endif
  30. #define BOOST_LIB_C_UC_NAME "uClibc"
  31. #endif
  32. #include <boost/predef/detail/test.h>
  33. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_UC,BOOST_LIB_C_UC_NAME)