X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fwctype.h;h=bc2420d3fd84756c11bc575b41224266baf18925;hb=4653b98711f280270fa049654460610f587ba7b4;hp=3ac24f13841a762c1ee948cffed32c19841162e3;hpb=2e5dfa515f78f5a67eb0cd7e323ab6f3ed76c15d;p=musl diff --git a/include/wctype.h b/include/wctype.h index 3ac24f13..bc2420d3 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) +#define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10) +#endif #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)