Skip to content

Commit b42e8d7

Browse files
committed
[libcxx] Address comments to fix build failures
1 parent 7b8417e commit b42e8d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libcxx/include/__mutex/unique_lock.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <__mutex/tag_types.h>
1717
#include <__system_error/throw_system_error.h>
1818
#include <__utility/swap.h>
19+
#include <__utility/move.h>
1920
#include <cerrno>
2021

2122
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxx/include/shared_mutex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ template <class Mutex>
139139
# include <__mutex/unique_lock.h>
140140
# include <__system_error/throw_system_error.h>
141141
# include <__utility/swap.h>
142+
# include <__utility/move.h>
142143
# include <cerrno>
143144
# include <version>
144145

@@ -151,6 +152,8 @@ _LIBCPP_PUSH_MACROS
151152
# pragma GCC system_header
152153
# endif
153154

155+
_LIBCPP_PUSH_MACROS
156+
#include <__undef_macros>
154157
_LIBCPP_BEGIN_NAMESPACE_STD
155158

156159
struct _LIBCPP_EXPORTED_FROM_ABI __shared_mutex_base {
@@ -430,6 +433,7 @@ inline _LIBCPP_HIDE_FROM_ABI void swap(shared_lock<_Mutex>& __x, shared_lock<_Mu
430433
}
431434

432435
_LIBCPP_END_NAMESPACE_STD
436+
_LIBCPP_POP_MACROS
433437

434438
# endif // _LIBCPP_STD_VER >= 14
435439

0 commit comments

Comments
 (0)