[hackers] [scc] [libc] Fix size_t size accross architectures || Quentin Rameau

From: <git_AT_suckless.org>
Date: Tue, 21 Feb 2017 19:42:00 +0100 (CET)

commit f4cc6f2eedec3ed0ae4b953aa6f5babda61a671e
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Feb 21 19:26:05 2017 +0100
Commit: Quentin Rameau <quinq_AT_fifth.space>
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
_AT_@ -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
_AT_@ -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
_AT_@ -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
_AT_@ -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
 
Received on Tue Feb 21 2017 - 19:42:00 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 21 2017 - 19:48:47 CET