X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fwchar.h;h=0167dce6b577a5f3349b5eef30ba000265560a09;hb=2d49c2243fbe3322961e6f0a052cc3a28acd1fe2;hp=52da63956643c926793878dd0581f9b51042fbb2;hpb=ab9672ae73248f51e30f4553c4b8878525e46383;p=musl diff --git a/include/wchar.h b/include/wchar.h index 52da6395..0167dce6 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -172,8 +172,11 @@ 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) +#define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10) +#endif #endif #ifdef __cplusplus