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] Make ctype_.c and ctype_.h agree on _ctype_b type Date: Mon, 17 Oct 2016 14:58:00 -0000 [thread overview] Message-ID: <20161017145841.110093.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=8394e47d73dbeb298a138b88c4d3718e8672cd55 commit 8394e47d73dbeb298a138b88c4d3718e8672cd55 Author: Thomas Preud'homme <thomas.preudhomme@arm.com> Date: Tue Sep 6 11:26:55 2016 +0100 Make ctype_.c and ctype_.h agree on _ctype_b type _ctype_b is defined in ctype_.c as a const char array for non cygwin targets allowing negative ctype index but as a char array for the same targets in ctype_.h, giving type conflict at compile time. This is because the cygwin targets are not treated specially in the latter file. This patch adds the necessary logic for cygwin targets in ctype_.h. Diff: --- newlib/libc/ctype/ctype_.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/ctype/ctype_.h b/newlib/libc/ctype/ctype_.h index 10a4b42..5356d38 100644 --- a/newlib/libc/ctype/ctype_.h +++ b/newlib/libc/ctype/ctype_.h @@ -6,7 +6,11 @@ #ifdef ALLOW_NEGATIVE_CTYPE_INDEX +#ifndef __CYGWIN__ + extern _CONST char _ctype_b[]; +#else extern char _ctype_b[]; +#endif # define DEFAULT_CTYPE_PTR ((char *) _ctype_b + 127) #else /* !ALLOW_NEGATIVE_CTYPE_INDEX */
reply other threads:[~2016-10-17 14:58 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=20161017145841.110093.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).