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/wctype.h | |
parent | ab9672ae73248f51e30f4553c4b8878525e46383 (diff) | |
download | musl-a60457c84a4b59ab564d7f4abb660a70283ba98d.tar.gz musl-a60457c84a4b59ab564d7f4abb660a70283ba98d.tar.bz2 musl-a60457c84a4b59ab564d7f4abb660a70283ba98d.tar.xz musl-a60457c84a4b59ab564d7f4abb660a70283ba98d.zip |
suppress macro definitions of ctype functions under C++
based on patch by Sergey Dmitrouk.
Diffstat (limited to 'include/wctype.h')
-rw-r--r-- | include/wctype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wctype.h b/include/wctype.h index 3ac24f13..3da12195 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -43,8 +43,10 @@ wint_t towupper(wint_t); wctrans_t wctrans(const char *); wctype_t wctype(const char *); +#ifndef __cplusplus #undef iswdigit #define iswdigit(a) (((unsigned)(a)-L'0') < 10) +#endif #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) |