public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Make ctype_.c and ctype_.h agree on _ctype_b type
@ 2016-10-17 14:58 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2016-10-17 14:58 UTC (permalink / raw)
  To: newlib-cvs

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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-17 14:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17 14:58 [newlib-cygwin] Make ctype_.c and ctype_.h agree on _ctype_b type Corinna Vinschen

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).