diff options
author | Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> | 2016-08-24 14:36:31 -0600 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-25 09:44:31 +0200 |
commit | 448b46397dcea17e97783b0311b6d9af6878001c (patch) | |
tree | 6c4417226ddace86f9c9a5d17975887d35791ade /newlib/libc/include/strings.h | |
parent | a703d64ad7edac344e4959e8d624ce1d8012678b (diff) | |
download | newlib-448b46397dcea17e97783b0311b6d9af6878001c.zip newlib-448b46397dcea17e97783b0311b6d9af6878001c.tar.gz newlib-448b46397dcea17e97783b0311b6d9af6878001c.tar.bz2 |
Add strerror_l prototype, change str[n]casecmp_l feature tests
strerror_l prototype was missing.
str[n]casecmp_l feature tests in string.h vs. strings.h were transposed.
Diffstat (limited to 'newlib/libc/include/strings.h')
-rw-r--r-- | newlib/libc/include/strings.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h index b462d07..be01958 100644 --- a/newlib/libc/include/strings.h +++ b/newlib/libc/include/strings.h @@ -15,6 +15,10 @@ #include <sys/cdefs.h> #include <sys/types.h> /* for size_t */ +#if __POSIX_VISIBLE >= 200809 +#include <sys/_locale.h> +#endif + _BEGIN_STD_C #if __BSD_VISIBLE || (__POSIX_VISIBLE && __POSIX_VISIBLE < 200809) @@ -33,10 +37,10 @@ int _EXFUN(ffs,(int)); int _EXFUN(strcasecmp,(const char *, const char *)); int _EXFUN(strncasecmp,(const char *, const char *, size_t)); -#if __GNU_VISIBLE -extern int strcasecmp_l (const char *, const char *, locale_t); -extern int strncasecmp_l (const char *, const char *, size_t, locale_t); -#endif /* _GNU_VISIBLE */ +#if __POSIX_VISIBLE >= 200809 +int strcasecmp_l (const char *, const char *, locale_t); +int strncasecmp_l (const char *, const char *, size_t, locale_t); +#endif /* __POSIX_VISIBLE >= 200809 */ _END_STD_C |