From aa2cef6d6a7233467ec7654eccabd1f10bad8fb8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 15 Mar 2024 22:19:53 -0400 Subject: libc: Add size_t type Signed-off-by: Ian Moffett --- lib/libc/include/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/include/stddef.h b/lib/libc/include/stddef.h index 7f7eb43..70b3ccf 100644 --- a/lib/libc/include/stddef.h +++ b/lib/libc/include/stddef.h @@ -30,6 +30,8 @@ #ifndef _STDDEF_H #define _STDDEF_H +#include + #if __cplusplus >= 201103L #define NULL nullptr #elif defined(__cplusplus) @@ -38,4 +40,6 @@ #define NULL ((void *) 0) #endif +typedef __size_t size_t; + #endif /* !_STDDEF_H */ -- cgit v1.2.3