scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit f257e561a1e9e01fff0014987a5050f9c2701406
parent daa5c9259be0c5c4179098e954763e496812edab
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 21 Nov 2021 08:31:41 +0100

libc: Use wchar from cdefs.h

Cdefs.h already contains the definition of wchar_t and it should not
define it in an absolute way.

Diffstat:
Minclude/wchar.h | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/wchar.h b/include/wchar.h @@ -1,9 +1,12 @@ #ifndef _WCHAR_H #define _WCHAR_H +#define _NEED_NULL +#define _NEED_SIZET +#define _NEED_WCHAR +#include <arch/cdefs.h> + /* TODO: This is only a placeholder */ -typedef long wchar_t; -/* typedef long size_t; */ typedef long mbstate_t; typedef long wint_t; struct tm;