path: root/include/wctype.h
diff options
authorRich Felker <>2013-07-22 13:05:41 -0400
committerRich Felker <>2013-07-22 13:05:41 -0400
commitc4dd0c98bae8e3583f68ba5b30db491055ab2322 (patch)
tree7b64cb99e6bc4cc9faff8207d8f78a5e72fb58d2 /include/wctype.h
parent9448b0513e2eec020fbca9c10412b83df5027a16 (diff)
change wint_t to unsigned
aside from the obvious C++ ABI purpose for this change, it also brings musl into alignment with the compiler's idea of the definition of wint_t (use in -Wformat), and makes the situation less awkward on ARM, where wchar_t is unsigned. internal code using wint_t and WEOF was checked against this change, and while a few cases of storing WEOF into wchar_t were found, they all seem to operate properly with the natural conversion from unsigned to signed.
Diffstat (limited to 'include/wctype.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wctype.h b/include/wctype.h
index 5640eddb..8c544f24 100644
--- a/include/wctype.h
+++ b/include/wctype.h
@@ -20,7 +20,7 @@ extern "C" {
typedef const int * wctrans_t;
#undef WEOF
-#define WEOF (-1)
+#define WEOF 0xffffffffU
#undef iswdigit