diff options
Diffstat (limited to 'libc/src/threads/linux/cnd_wait.cpp')
| -rw-r--r-- | libc/src/threads/linux/cnd_wait.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/threads/linux/cnd_wait.cpp b/libc/src/threads/linux/cnd_wait.cpp index 97cade3f231d..3633cc85277b 100644 --- a/libc/src/threads/linux/cnd_wait.cpp +++ b/libc/src/threads/linux/cnd_wait.cpp @@ -8,12 +8,13 @@ #include "src/threads/cnd_wait.h" #include "src/__support/common.h" +#include "src/__support/macros/config.h" #include "src/__support/threads/CndVar.h" #include "src/__support/threads/mutex.h" #include <threads.h> // cnd_t, mtx_t, thrd_error, thrd_success -namespace LIBC_NAMESPACE { +namespace LIBC_NAMESPACE_DECL { static_assert(sizeof(CndVar) == sizeof(cnd_t)); @@ -23,4 +24,4 @@ LLVM_LIBC_FUNCTION(int, cnd_wait, (cnd_t * cond, mtx_t *mtx)) { return cndvar->wait(mutex) ? thrd_error : thrd_success; } -} // namespace LIBC_NAMESPACE +} // namespace LIBC_NAMESPACE_DECL |
