scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit c3b8df5d888d727010ce40ba9798089f5343f32c
parent e70e625416b24422380560aed9494a9f37c4212b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 18 Feb 2017 20:25:39 +0100

[libc] Add wchar_t to stdlib.h

Diffstat:
Mlibc/include/bits/amd64-sysv/arch/stdlib.h | 5+++++
Mlibc/include/bits/i386-sysv/arch/stdlib.h | 5+++++
Mlibc/include/bits/qbe/arch/stdlib.h | 5+++++
Mlibc/include/bits/z80/arch/stdlib.h | 5+++++
4 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/libc/include/bits/amd64-sysv/arch/stdlib.h b/libc/include/bits/amd64-sysv/arch/stdlib.h @@ -12,3 +12,8 @@ typedef unsigned long size_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 #define RAND_MAX 32767 + +#ifndef _WCHAR_T +typedef int wchar_t; +#define _WCHAR_T +#endif diff --git a/libc/include/bits/i386-sysv/arch/stdlib.h b/libc/include/bits/i386-sysv/arch/stdlib.h @@ -12,3 +12,8 @@ typedef unsigned long size_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 #define RAND_MAX 32767 + +#ifndef _WCHAR_T +typedef int wchar_t; +#define _WCHAR_T +#endif diff --git a/libc/include/bits/qbe/arch/stdlib.h b/libc/include/bits/qbe/arch/stdlib.h @@ -12,3 +12,8 @@ typedef unsigned long size_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 #define RAND_MAX 32767 + +#ifndef _WCHAR_T +typedef int wchar_t; +#define _WCHAR_T +#endif diff --git a/libc/include/bits/z80/arch/stdlib.h b/libc/include/bits/z80/arch/stdlib.h @@ -12,3 +12,8 @@ typedef unsigned size_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 #define RAND_MAX 32767 + +#ifndef _WCHAR_T +typedef long wchar_t; +#define _WCHAR_T +#endif