diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-10-14 12:30:50 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-10-14 12:30:50 -0400 |
commit | a60457c84a4b59ab564d7f4abb660a70283ba98d (patch) | |
tree | e49bb4c5d616870725f23bc8741b0074d8f2361b /include/ctype.h | |
parent | ab9672ae73248f51e30f4553c4b8878525e46383 (diff) | |
download | musl-a60457c84a4b59ab564d7f4abb660a70283ba98d.tar.gz |
suppress macro definitions of ctype functions under C++
based on patch by Sergey Dmitrouk.
Diffstat (limited to 'include/ctype.h')
-rw-r--r-- | include/ctype.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) \ |