shithub: scc

Download patch

ref: 7fe70d06bd207ca43eaaf2b13c85900decf88b5f
parent: 6b714366f2c3aaaf2fd9a69443b083fb665d14f9
author: Quentin Rameau <quinq@fifth.space>
date: Fri Mar 10 06:50:50 EST 2017

[libc] Fix wchar_t definition in stddef.h

--- a/libc/include/bits/amd64-sysv/arch/stddef.h
+++ b/libc/include/bits/amd64-sysv/arch/stddef.h
@@ -6,7 +6,7 @@
 #endif
 
 #ifndef _WCHAR_T
-typedef short wchar_t;
+typedef int wchar_t;
 #define _WCHAR_T
 #endif
 
--- a/libc/include/bits/i386-sysv/arch/stddef.h
+++ b/libc/include/bits/i386-sysv/arch/stddef.h
@@ -6,7 +6,7 @@
 #endif
 
 #ifndef _WCHAR_T
-typedef short wchar_t;
+typedef int wchar_t;
 #define _WCHAR_T
 #endif
 
--- a/libc/include/bits/qbe/arch/stddef.h
+++ b/libc/include/bits/qbe/arch/stddef.h
@@ -6,7 +6,7 @@
 #endif
 
 #ifndef _WCHAR_T
-typedef short wchar_t;
+typedef int wchar_t;
 #define _WCHAR_T
 #endif
 
--- a/libc/include/bits/z80/arch/stdlib.h
+++ b/libc/include/bits/z80/arch/stdlib.h
@@ -9,7 +9,7 @@
 #define EXIT_SUCCESS 0
 
 #ifndef _WCHAR_T
-typedef long wchar_t;
+typedef short wchar_t;
 #define _WCHAR_T
 #endif