This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[RFA:] Fix recent non-cygwin __ctype_ptr__ failure
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: newlib at sourceware dot org
- Date: Wed, 1 Apr 2009 14:24:12 +0200
- Subject: [RFA:] Fix recent non-cygwin __ctype_ptr__ failure
Fixes the problem. No regressions for cris-elf running the gcc
test-suites (for gcc, libstdc++, libgfortran, libobjc).
Ok to commit?
* libc/include/ctype.c (__ctype_ptr) [!_MB_CAPABLE]: Re-constity.
Index: newlib/libc/include/ctype.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/ctype.h,v
retrieving revision 1.15
diff -u -p -r1.15 ctype.h
--- newlib/libc/include/ctype.h 31 Mar 2009 09:31:38 -0000 1.15
+++ newlib/libc/include/ctype.h 1 Apr 2009 01:31:00 -0000
@@ -39,7 +39,11 @@ int _EXFUN(toascii, (int __c));
#define _X 0100
#define _B 0200
-extern __IMPORT char *__ctype_ptr__;
+extern
+#ifndef _MB_CAPABLE
+ _CONST
+#endif
+ __IMPORT char *__ctype_ptr__;
#ifndef __cplusplus
#define isalpha(c) ((__ctype_ptr__)[(unsigned)((c)+1)]&(_U|_L))
brgds, H-P