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
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2001-06-12 01:51:41 +0400
committerJeff Johnston <jjohnstn@redhat.com>2001-06-12 01:51:41 +0400
commit25842b68c79e1ab640b133db6520a8c0a2a458e8 (patch)
tree471cffb8f79f9524c1c2913c55a86088986d8d51 /newlib
parent66a7fbe263c2be27b0df22a1daf831062c67519b (diff)
2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
* /libc/include/ctype.h (is* and to* macros): Do not define if C++.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/ctype.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index c568283c0..e257e42c5 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2001-06-11 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * /libc/include/ctype.h (is* and to* macros): Do not define if C++.
+
2001-06-11 Egor Duda <deo@logos-m.ru>
* libc/ctype/ctype_.c: When compiled with gcc on platforms
diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h
index 624cb1c6f..18dd02f70 100644
--- a/newlib/libc/include/ctype.h
+++ b/newlib/libc/include/ctype.h
@@ -38,6 +38,7 @@ int _EXFUN(_toupper, (int __c));
extern __IMPORT _CONST char _ctype_[];
+#ifndef __cplusplus
#define isalpha(c) ((_ctype_+1)[(unsigned)(c)]&(_U|_L))
#define isupper(c) ((_ctype_+1)[(unsigned)(c)]&_U)
#define islower(c) ((_ctype_+1)[(unsigned)(c)]&_L)
@@ -57,6 +58,7 @@ extern __IMPORT _CONST char _ctype_[];
# define tolower(c) \
__extension__ ({ int __x = (c); isupper(__x) ? (__x - 'A' + 'a') : __x;})
#endif
+#endif /* !__cplusplus */
#ifndef __STRICT_ANSI__
#define isascii(c) ((unsigned)(c)<=0177)