Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2016-09-06 13:26:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-10-17 17:37:44 +0300
commit8394e47d73dbeb298a138b88c4d3718e8672cd55 (patch)
tree71db09ade44c1bb787c78e7a09d74eb878408822 /newlib/libc/ctype
parentf763e2dc88d04430dd2524a529eef91a2e517e4e (diff)
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/libc/ctype')
-rw-r--r--newlib/libc/ctype/ctype_.h4
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 */