ppc wchar_t is long, not int
[musl] / arch / powerpc / bits / alltypes.h.sh
index 9fa6fab..9b61677 100755 (executable)
@@ -22,7 +22,7 @@ TYPEDEF long ptrdiff_t;
 TYPEDEF __builtin_va_list va_list;
 
 #ifndef __cplusplus
-TYPEDEF int wchar_t;
+TYPEDEF long wchar_t;
 #endif
 TYPEDEF int wint_t;
 TYPEDEF long wctrans_t;