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/wchar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wchar.h') diff --git a/include/wchar.h b/include/wchar.h index 52da6395..ad727a86 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -172,9 +172,12 @@ int iswctype(wint_t, wctype_t); wint_t towlower(wint_t); wint_t towupper(wint_t); wctype_t wctype(const char *); + +#ifndef __cplusplus #undef iswdigit #define iswdigit(a) ((unsigned)(a)-'0' < 10) #endif +#endif #ifdef __cplusplus } -- cgit v1.2.1