diff options
Diffstat (limited to 'libc/src/string/strnlen.cpp')
| -rw-r--r-- | libc/src/string/strnlen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/src/string/strnlen.cpp b/libc/src/string/strnlen.cpp index 8849fa0fdd9f..26fcd5a04c0d 100644 --- a/libc/src/string/strnlen.cpp +++ b/libc/src/string/strnlen.cpp @@ -7,12 +7,13 @@ //===----------------------------------------------------------------------===// #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 { +namespace LIBC_NAMESPACE_DECL { LLVM_LIBC_FUNCTION(size_t, strnlen, (const char *src, size_t n)) { const void *temp = internal::find_first_character( @@ -20,4 +21,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 +} // namespace LIBC_NAMESPACE_DECL |
