shithub: scc

Download patch

ref: fd69ae5a010dc48c00b4509ee17163a919a74ea6
parent: c7e5fe94be7cb5484d276f40c2305baf9222efae
author: Quentin Rameau <quinq@fifth.space>
date: Tue Feb 21 14:26:05 EST 2017

[libc] Fix size_t size accross architectures

--- a/libc/include/bits/amd64-sysv/arch/string.h
+++ b/libc/include/bits/amd64-sysv/arch/string.h
@@ -5,5 +5,5 @@
 #endif
 
 #ifndef _SIZET
-typedef unsigned size_t;
+typedef unsigned long size_t;
 #endif
--- a/libc/include/bits/i386-sysv/arch/string.h
+++ b/libc/include/bits/i386-sysv/arch/string.h
@@ -5,5 +5,5 @@
 #endif
 
 #ifndef _SIZET
-typedef unsigned size_t;
+typedef unsigned long size_t;
 #endif
--- a/libc/include/bits/qbe/arch/string.h
+++ b/libc/include/bits/qbe/arch/string.h
@@ -5,5 +5,5 @@
 #endif
 
 #ifndef _SIZET
-typedef unsigned size_t;
+typedef unsigned long size_t;
 #endif
--- a/libc/include/bits/z80/arch/stddef.h
+++ b/libc/include/bits/z80/arch/stddef.h
@@ -5,12 +5,12 @@
 #endif
 
 #ifndef _SIZET
-typedef unsigned short size_t;
+typedef unsigned size_t;
 #define _SIZET
 #endif
 
 #ifndef _WCHAR_T
-typedef short wchar_t; 
+typedef short wchar_t;
 #define _WCHAR_T
 #endif