aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/latch
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/include/latch')
-rw-r--r--libcxx/include/latch8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/latch b/libcxx/include/latch
index f669f5860d34..a894f8cafd1c 100644
--- a/libcxx/include/latch
+++ b/libcxx/include/latch
@@ -19,6 +19,8 @@ namespace std
class latch
{
public:
+ static constexpr ptrdiff_t max() noexcept;
+
constexpr explicit latch(ptrdiff_t __expected);
~latch();
@@ -39,6 +41,7 @@ namespace std
*/
#include <__config>
+#include <__availability>
#include <atomic>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
@@ -49,6 +52,9 @@ namespace std
# 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 @@ _LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP_STD_VER >= 14
+_LIBCPP_POP_MACROS
+
#endif //_LIBCPP_LATCH