diff options
author | DJ Delorie <dj@redhat.com> | 2014-06-11 17:56:17 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2014-06-11 17:56:17 +0000 |
commit | 84600df21d81d6572fdf12735ea636cf4f6507bd (patch) | |
tree | 5ec90a29b674ea44bef3aa4fc580b160fc34ce64 /include | |
parent | deda48a9fb841ad50164bb87bca48de141f3da40 (diff) | |
download | newlib-84600df21d81d6572fdf12735ea636cf4f6507bd.zip newlib-84600df21d81d6572fdf12735ea636cf4f6507bd.tar.gz newlib-84600df21d81d6572fdf12735ea636cf4f6507bd.tar.bz2 |
merge from gcc
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 6 | ||||
-rw-r--r-- | include/libiberty.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 99a3069..8c76d66 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,9 @@ +2014-06-10 Thomas Schwinge <thomas@codesourcery.com> + + PR lto/61334 + * libiberty.h [defined (HAVE_DECL_STRNLEN) && + !HAVE_DECL_STRNLEN] (strnlen): New prototype. + 2014-05-21 John Marino <gnugcc@marino.st> * liberty.h: Use basename function on DragonFly. diff --git a/include/libiberty.h b/include/libiberty.h index 7fd0703..56b8b43 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -636,6 +636,10 @@ extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0); #endif +#if defined (HAVE_DECL_STRNLEN) && !HAVE_DECL_STRNLEN +extern size_t strnlen (const char *, size_t); +#endif + #if defined(HAVE_DECL_STRVERSCMP) && !HAVE_DECL_STRVERSCMP /* Compare version strings. */ extern int strverscmp (const char *, const char *); |