From 2d855137237f2ec0d9edbc2af661e8d29fc6f5c7 Mon Sep 17 00:00:00 2001 From: Anthony <62391911+ajwood1965@users.noreply.github.com> Date: Sat, 27 Apr 2024 20:55:08 -0500 Subject: [PATCH] add stdlib ptrdiff_t, max_align_t --- source/stdlib-include/stddef.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/stdlib-include/stddef.h b/source/stdlib-include/stddef.h index de737cb2..a59af1b1 100644 --- a/source/stdlib-include/stddef.h +++ b/source/stdlib-include/stddef.h @@ -19,5 +19,8 @@ typedef twr_size_t size_t; #define MAX_SIZE_T TWR_MAX_SIZE_T // size_t max #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) +typedef __PTRDIFF_TYPE__ ptrdiff_t; + +typedef double max_align_t; #endif /* __TINY_STDDEF_H__ */