projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
size-optimize sh/fdpic dynamic entry point
[musl]
/
include
/
wchar.h
diff --git
a/include/wchar.h
b/include/wchar.h
index
52da639
..
0167dce
100644
(file)
--- 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 *);
wint_t towlower(wint_t);
wint_t towupper(wint_t);
wctype_t wctype(const char *);
+
+#ifndef __cplusplus
#undef iswdigit
#undef iswdigit
-#define iswdigit(a) ((unsigned)(a)-'0' < 10)
+#define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10)
+#endif
#endif
#ifdef __cplusplus
#endif
#ifdef __cplusplus