From a60457c84a4b59ab564d7f4abb660a70283ba98d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 14 Oct 2014 12:30:50 -0400 Subject: suppress macro definitions of ctype functions under C++ based on patch by Sergey Dmitrouk. --- include/ctype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ctype.h') diff --git a/include/ctype.h b/include/ctype.h index a6f44df2..a7d5db5d 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -22,6 +22,7 @@ int isxdigit(int); int tolower(int); int toupper(int); +#ifndef __cplusplus static __inline int __isspace(int _c) { return _c == ' ' || (unsigned)_c-'\t' < 5; @@ -34,6 +35,7 @@ static __inline int __isspace(int _c) #define isprint(a) (((unsigned)(a)-0x20) < 0x5f) #define isgraph(a) (((unsigned)(a)-0x21) < 0x5e) #define isspace(a) __isspace(a) +#endif #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ -- cgit 1.4.1