From ad9ed96b6b1cefb34474948bde0b1635155ba107 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 16 Sep 2014 19:59:01 +0000 Subject: 2014-09-17 Joel Sherrill Thomas Uhle * libc/include/string.h: Correct guard for strnlen(). --- newlib/libc/include/string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newlib/libc') 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 -- cgit v1.2.3