summaryrefslogtreecommitdiff
path: root/libc/test/UnitTest/HermeticTestUtils.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2024-07-12 09:28:41 -0700
committerGitHub <noreply@github.com>2024-07-12 09:28:41 -0700
commit5ff3ff33ff930e4ec49da7910612d8a41eb068cb (patch)
treeffb876db6deb2dfd4c6c0c11ddf692db75082f7f /libc/test/UnitTest/HermeticTestUtils.cpp
parentdd866040aeb2703debacc141f60429ea0f567146 (diff)
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)
This is a part of #97655.
Diffstat (limited to 'libc/test/UnitTest/HermeticTestUtils.cpp')
-rw-r--r--libc/test/UnitTest/HermeticTestUtils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/test/UnitTest/HermeticTestUtils.cpp b/libc/test/UnitTest/HermeticTestUtils.cpp
index ca854ad94393..85e5cf02ff61 100644
--- a/libc/test/UnitTest/HermeticTestUtils.cpp
+++ b/libc/test/UnitTest/HermeticTestUtils.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
#include <stddef.h>
#include <stdint.h>
@@ -14,7 +15,7 @@
#include "src/sys/auxv/getauxval.h"
#endif
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE_DECL {
int bcmp(const void *lhs, const void *rhs, size_t count);
void bzero(void *ptr, size_t count);
@@ -30,7 +31,7 @@ int atexit(void (*func)(void));
// always returns 0 to indicate a failure.
[[gnu::weak]] unsigned long getauxval(unsigned long id) { return 0; }
-} // namespace LIBC_NAMESPACE
+} // namespace LIBC_NAMESPACE_DECL
namespace {