Mercurial > hg > CbC > CbC_llvm
diff libcxx/include/latch @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/libcxx/include/latch Mon May 25 11:55:54 2020 +0900 +++ b/libcxx/include/latch Tue Jun 08 06:07:14 2021 +0900 @@ -19,6 +19,8 @@ class latch { public: + static constexpr ptrdiff_t max() noexcept; + constexpr explicit latch(ptrdiff_t __expected); ~latch(); @@ -38,6 +40,7 @@ */ +#include <__availability> #include <__config> #include <atomic> @@ -49,6 +52,9 @@ # error <latch> is not supported on this single threaded system #endif +_LIBCPP_PUSH_MACROS +#include <__undef_macros> + #if _LIBCPP_STD_VER >= 14 _LIBCPP_BEGIN_NAMESPACE_STD @@ -101,4 +107,6 @@ #endif // _LIBCPP_STD_VER >= 14 +_LIBCPP_POP_MACROS + #endif //_LIBCPP_LATCH