commit f4cc6f2eedec3ed0ae4b953aa6f5babda61a671e
Author: Quentin Rameau <[email protected]>
AuthorDate: Tue Feb 21 19:26:05 2017 +0100
Commit: Quentin Rameau <[email protected]>
CommitDate: Tue Feb 21 19:41:25 2017 +0100
[libc] Fix size_t size accross architectures
diff --git a/libc/include/bits/amd64-sysv/arch/string.h
b/libc/include/bits/amd64-sysv/arch/string.h
index 3f462d2..b46813a 100644
--- 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
diff --git a/libc/include/bits/i386-sysv/arch/string.h
b/libc/include/bits/i386-sysv/arch/string.h
index 3f462d2..b46813a 100644
--- 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
diff --git a/libc/include/bits/qbe/arch/string.h
b/libc/include/bits/qbe/arch/string.h
index 3f462d2..b46813a 100644
--- 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
diff --git a/libc/include/bits/z80/arch/stddef.h
b/libc/include/bits/z80/arch/stddef.h
index 8195de4..7bced4a 100644
--- 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