diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-09-16 19:59:01 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-09-16 19:59:01 +0000 |
commit | ad9ed96b6b1cefb34474948bde0b1635155ba107 (patch) | |
tree | 261045f86959985c8b7a6459f91008d7f9734690 /newlib | |
parent | 3158e7d6749eeef6617ecb1592b7ac31ec17c926 (diff) | |
download | cygnal-ad9ed96b6b1cefb34474948bde0b1635155ba107.tar.gz cygnal-ad9ed96b6b1cefb34474948bde0b1635155ba107.tar.bz2 cygnal-ad9ed96b6b1cefb34474948bde0b1635155ba107.zip |
2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de>
* libc/include/string.h: Correct guard for strnlen().
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/string.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9c9789160..7ef574bad 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> + Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de> + + * libc/include/string.h: Correct guard for strnlen(). + 2014-09-15 Jeff Johnston <jjohnstn@redhat.com> * libc/time/month_lengths.c: Fix to define __month_lengths. 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 |