summaryrefslogtreecommitdiff
path: root/libc/string/strnlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/strnlen.c')
-rw-r--r--libc/string/strnlen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/string/strnlen.c b/libc/string/strnlen.c
index 6732cc532..547dd23b2 100644
--- a/libc/string/strnlen.c
+++ b/libc/string/strnlen.c
@@ -8,14 +8,14 @@
#include "_string.h"
#ifdef WANT_WIDE
-# define __Wstrnlen __wcsnlen
# define Wstrnlen wcsnlen
#else
-# define __Wstrnlen __strnlen
# define Wstrnlen strnlen
#endif
-size_t attribute_hidden __Wstrnlen(const Wchar *s, size_t max)
+libc_hidden_proto(Wstrnlen)
+
+size_t Wstrnlen(const Wchar *s, size_t max)
{
register const Wchar *p = s;
#ifdef __BCC__
@@ -34,4 +34,4 @@ size_t attribute_hidden __Wstrnlen(const Wchar *s, size_t max)
}
#undef maxp
-strong_alias(__Wstrnlen,Wstrnlen)
+libc_hidden_def(Wstrnlen)