summaryrefslogtreecommitdiff
path: root/libc/src/string/strnlen.cpp
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2024-07-12 09:12:13 +0200
committerGitHub <noreply@github.com>2024-07-12 09:12:13 +0200
commitce9035f5bd3aa09cbd899489cdbc7f6c18acf1e3 (patch)
tree0f22897d7f178d7b3850db2397b4b59698336d26 /libc/src/string/strnlen.cpp
parent37d3f44a58d0a2a2e8782266acd66a6733984842 (diff)
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)
Reverts llvm/llvm-project#98075 bots are broken
Diffstat (limited to 'libc/src/string/strnlen.cpp')
-rw-r--r--libc/src/string/strnlen.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/src/string/strnlen.cpp b/libc/src/string/strnlen.cpp
index 26fcd5a04c0d..8849fa0fdd9f 100644
--- a/libc/src/string/strnlen.cpp
+++ b/libc/src/string/strnlen.cpp
@@ -7,13 +7,12 @@
//===----------------------------------------------------------------------===//
#include "src/string/strnlen.h"
-#include "src/__support/macros/config.h"
#include "src/string/string_utils.h"
#include "src/__support/common.h"
#include <stddef.h>
-namespace LIBC_NAMESPACE_DECL {
+namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(size_t, strnlen, (const char *src, size_t n)) {
const void *temp = internal::find_first_character(
@@ -21,4 +20,4 @@ LLVM_LIBC_FUNCTION(size_t, strnlen, (const char *src, size_t n)) {
return temp ? reinterpret_cast<const char *>(temp) - src : n;
}
-} // namespace LIBC_NAMESPACE_DECL
+} // namespace LIBC_NAMESPACE