Skip to content

Commit 3827697

Browse files
LIBC_INTERNAL namespace has an attribute, which some compilers don't like.
1 parent 0a81fda commit 3827697

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libc/src/string/memory_utils/aarch64/inline_strlen.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
#include "src/__support/CPP/bit.h" // countr_zero
1515
#include <arm_neon.h>
1616
#include <stddef.h> // size_t
17-
namespace LIBC_NAMESPACE_DECL::arch_vector {
17+
namespace LIBC_NAMESPACE_DECL {
18+
namespace arch_vector {
1819
namespace neon {
1920
[[maybe_unused]] LIBC_NO_SANITIZE_OOB_ACCESS LIBC_INLINE static size_t
2021
string_length(const char *src) {
@@ -44,7 +45,7 @@ string_length(const char *src) {
4445
}
4546
}
4647
} // namespace neon
47-
} // namespace LIBC_NAMESPACE_DECL::arch_vector
48+
} // namespace arch_vector
4849
#endif // __ARM_NEON
4950

5051
#ifdef LIBC_TARGET_CPU_HAS_SVE
@@ -94,6 +95,7 @@ namespace sve {
9495
}
9596
} // namespace sve
9697
} // namespace LIBC_NAMESPACE_DECL::arch_vector
98+
} // namespace LIBC_NAMESPACE_DECL
9799
#endif // LIBC_TARGET_CPU_HAS_SVE
98100

99101
namespace LIBC_NAMESPACE_DECL::arch_vector {

0 commit comments

Comments
 (0)