diff options
Diffstat (limited to 'wcsmbs/wcsnlen.c')
-rw-r--r-- | wcsmbs/wcsnlen.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wcsmbs/wcsnlen.c b/wcsmbs/wcsnlen.c index 2bee7057e3..e928ab6961 100644 --- a/wcsmbs/wcsnlen.c +++ b/wcsmbs/wcsnlen.c @@ -18,8 +18,11 @@ #include <wchar.h> +#ifdef WCSNLEN +# define __wcsnlen WCSNLEN +#endif -/* Copy SRC to DEST. */ +/* Return length of string S at most maxlen. */ size_t __wcsnlen (s, maxlen) const wchar_t *s; @@ -44,4 +47,6 @@ __wcsnlen (s, maxlen) return len; } +#ifndef WCSNLEN weak_alias (__wcsnlen, wcsnlen) +#endif |