ref: c79199da3e3565e28c2220a8474712a9fabc76e4
parent: de4795d333b7ac4c514288683e30afb1199f0dd7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Nov 21 03:31:41 EST 2021
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.
--- 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;