From 8ca49aa4faf31c67ff4093e29b44d444a4e52b57 Mon Sep 17 00:00:00 2001 From: Quinn Date: Thu, 9 Oct 2025 12:28:24 +0200 Subject: [PATCH] fix: `ssize` got removed in rework of `intdef.h`/`types.h`. --- src/types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types.h b/src/types.h index cf6a966..d48738b 100644 --- a/src/types.h +++ b/src/types.h @@ -19,6 +19,14 @@ typedef __SIZE_TYPE__ usize; typedef __INTPTR_TYPE__ intptr; typedef __UINTPTR_TYPE__ uintptr; +#if __SIZEOF_SIZE_T__ == __SIZEOF_LONG_LONG__ +typedef llong ssize; +#elif __SIZEOF_SIZE_T__ == __SIZEOF_LONG__ +typedef long ssize; +#elif __SIZEOF_SIZE_T__ == __SIZEOF_INT__ +typedef int ssize; +#endif + #if __SIZEOF_FLOAT__ == 4 typedef float f32; #endif