summaryrefslogtreecommitdiff
path: root/libc/src/pthread/pthread_exit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/pthread/pthread_exit.cpp')
-rw-r--r--libc/src/pthread/pthread_exit.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/pthread/pthread_exit.cpp b/libc/src/pthread/pthread_exit.cpp
index acba665d0fa4..7e3bbee8b20e 100644
--- a/libc/src/pthread/pthread_exit.cpp
+++ b/libc/src/pthread/pthread_exit.cpp
@@ -9,11 +9,12 @@
#include "pthread_exit.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "src/__support/threads/thread.h"
#include <pthread.h> // For pthread_* type definitions.
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
static_assert(sizeof(pthread_t) == sizeof(LIBC_NAMESPACE::Thread),
"Mismatch between pthread_t and internal Thread.");
@@ -22,4 +23,4 @@ LLVM_LIBC_FUNCTION(void, pthread_exit, (void *retval)) {
LIBC_NAMESPACE::thread_exit(ThreadReturnValue(retval), ThreadStyle::POSIX);
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL