summaryrefslogtreecommitdiff
path: root/libc/src/pthread/pthread_once.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/pthread/pthread_once.cpp')
-rw-r--r--libc/src/pthread/pthread_once.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/pthread/pthread_once.cpp b/libc/src/pthread/pthread_once.cpp
index 0e0045e9c540..d78644a8dab2 100644
--- a/libc/src/pthread/pthread_once.cpp
+++ b/libc/src/pthread/pthread_once.cpp
@@ -8,11 +8,12 @@
#include "pthread_once.h"
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include "src/__support/threads/callonce.h"
#include <pthread.h> // For pthread_once_t and __pthread_once_func_t definitions.
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(int, pthread_once,
(pthread_once_t * flag, __pthread_once_func_t func)) {
@@ -20,4 +21,4 @@ LLVM_LIBC_FUNCTION(int, pthread_once,
reinterpret_cast<CallOnceCallback *>(func));
}
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL