cloudabi.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /* tag::reference[]
  17. = `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. [options="header"]
  21. |===
  22. | {predef_symbol} | {predef_version}
  23. | `+__cloudlibc__+` | {predef_detection}
  24. | `+__cloudlibc_major__+`, `+__cloudlibc_minor__+` | V.R.0
  25. |===
  26. */ // end::reference[]
  27. #define BOOST_LIB_C_CLOUDABI BOOST_VERSION_NUMBER_NOT_AVAILABLE
  28. #if defined(__cloudlibc__)
  29. # undef BOOST_LIB_C_CLOUDABI
  30. # define BOOST_LIB_C_CLOUDABI \
  31. BOOST_VERSION_NUMBER(__cloudlibc_major__,__cloudlibc_minor__,0)
  32. #endif
  33. #if BOOST_LIB_C_CLOUDABI
  34. # define BOOST_LIB_C_CLOUDABI_AVAILABLE
  35. #endif
  36. #define BOOST_LIB_C_CLOUDABI_NAME "cloudlibc"
  37. #endif
  38. #include <boost/predef/detail/test.h>
  39. BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_C_CLOUDABI,BOOST_LIB_C_CLOUDABI_NAME)