public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Add strerror_l prototype, change str[n]casecmp_l feature tests Date: Thu, 25 Aug 2016 07:46:00 -0000 [thread overview] Message-ID: <20160825074633.21668.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=448b46397dcea17e97783b0311b6d9af6878001c commit 448b46397dcea17e97783b0311b6d9af6878001c Author: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca> Date: Wed Aug 24 14:36:31 2016 -0600 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. Diff: --- newlib/libc/include/string.h | 13 +++++++------ newlib/libc/include/strings.h | 12 ++++++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 8f4fd2e..ba5e51e 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -48,13 +48,14 @@ char *_EXFUN(strtok,(char *__restrict, const char *__restrict)); size_t _EXFUN(strxfrm,(char *__restrict, const char *__restrict, size_t)); #if __POSIX_VISIBLE >= 200809 -extern int strcasecmp_l (const char *, const char *, locale_t); -extern int strncasecmp_l (const char *, const char *, size_t, locale_t); -extern int strcoll_l (const char *, const char *, locale_t); -extern size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, - locale_t); +int strcoll_l (const char *, const char *, locale_t); +char *strerror_l (int, locale_t); +size_t strxfrm_l (char *__restrict, const char *__restrict, size_t, locale_t); +#endif +#if __GNU_VISIBLE +int strcasecmp_l (const char *, const char *, locale_t); +int strncasecmp_l (const char *, const char *, size_t, locale_t); #endif - #if __MISC_VISIBLE || __POSIX_VISIBLE char *_EXFUN(strtok_r,(char *__restrict, const char *__restrict, char **__restrict)); #endif 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
reply other threads:[~2016-08-25 7:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160825074633.21668.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).