about summary refs log tree commit diff
path: root/include/wctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wctype.h')
-rw-r--r--include/wctype.h2
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)