Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2014-09-16 23:59:01 +0400
committerJeff Johnston <jjohnstn@redhat.com>2014-09-16 23:59:01 +0400
commitad9ed96b6b1cefb34474948bde0b1635155ba107 (patch)
tree261045f86959985c8b7a6459f91008d7f9734690
parent3158e7d6749eeef6617ecb1592b7ac31ec17c926 (diff)
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().
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/string.h3
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