cloudabi.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (C) 2017 James E. King III
  3. *
  4. * Distributed under the Boost Software License, Version 1.0.
  5. * (See accompanying file LICENSE_1_0.txt or copy at
  6. * http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_PREDEF_LIBRARY_C_CLOUDABI_H
  9. #define BOOST_PREDEF_LIBRARY_C_CLOUDABI_H
  10. #include <boost/predef/version_number.h>
  11. #include <boost/predef/make.h>
  12. #include <boost/predef/library/c/_prefix.h>
  13. #if defined(__CloudABI__)
  14. #include <stddef.h>
  15. #endif
  16. /*`
  17. [heading `BOOST_LIB_C_CLOUDABI`]
  18. [@https://github.com/NuxiNL/cloudlibc cloudlibc] - CloudABI's standard C library.
  19. Version number available as major, and minor.
  20. [table
  21. [[__predef_symbol__] [__predef_version__]]
  22. [[`__cloudlibc__`] [__predef_detection__]]
  23. [[`__cloudlibc_major__`, `__cloudlibc_minor__`] [V.R.0]]
  24. ]
  25. */
  26. #define BOOST_LIB_C_CLOUDABI BOOST_VERSION_NUMBER_NOT_AVAILABLE
  27. #if defined(__cloudlibc__)
  28. # undef BOOST_LIB_C_CLOUDABI
  29. # define BOOST_LIB_C_CLOUDABI \
  30. BOOST_VERSION_NUMBER(__cloudlibc_major__,__cloudlibc_minor__,0)
  31. #endif
  32. #if BOOST_LIB_C_CLOUDABI
  33. # define BOOST_LIB_C_CLOUDABI_AVAILABLE
  34. #endif
  35. #define BOOST_LIB_C_CLOUDABI_NAME "cloudlibc"
  36. #endif
  37. #include <boost/predef/detail/test.h>
  38. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_CLOUDABI,BOOST_LIB_C_CLOUDABI_NAME)