diff options
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/string.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index d95772032..e577a71bd 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -116,7 +116,8 @@ size_t _EXFUN(strlcpy,(char *, const char *, size_t)); #if __BSD_VISIBLE || __POSIX_VISIBLE int _EXFUN(strncasecmp,(const char *, const char *, size_t)); #endif -#if !defined(__STRICT_ANSI__) || __XSI_VISIBLE >= 500 +#if !defined(__STRICT_ANSI__) || __POSIX_VISIBLE >= 200809 || \ + __XSI_VISIBLE >= 700 size_t _EXFUN(strnlen,(const char *, size_t)); #endif #if __BSD_VISIBLE |