diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2016-09-06 11:26:55 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-10-17 16:37:44 +0200 |
commit | 8394e47d73dbeb298a138b88c4d3718e8672cd55 (patch) | |
tree | 71db09ade44c1bb787c78e7a09d74eb878408822 /newlib | |
parent | f763e2dc88d04430dd2524a529eef91a2e517e4e (diff) | |
download | cygnal-8394e47d73dbeb298a138b88c4d3718e8672cd55.tar.gz cygnal-8394e47d73dbeb298a138b88c4d3718e8672cd55.tar.bz2 cygnal-8394e47d73dbeb298a138b88c4d3718e8672cd55.zip |
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.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/ctype/ctype_.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/ctype/ctype_.h b/newlib/libc/ctype/ctype_.h index 10a4b42ff..5356d3815 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 */ |