From 86c09e193ed66420da48a7fd62678286b89dace2 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 09:04:15 +0100 Subject: working on event loop --- src/utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 5f9d1cb..59b5334 100644 --- a/src/utils.h +++ b/src/utils.h @@ -17,6 +17,16 @@ typedef int16_t i16; typedef int32_t i32; typedef int64_t i64; +#if UINT64_MAX == UINTPTR_MAX +typedef u64 usize; +typedef i64 isize; +#elif UINT32_MAX == UINTPTR_MAX +typedef u32 usize; +typedef i32 isize; +#else +#error "Unsupported pointer size" +#endif + typedef struct wl_display *wl_display_t; typedef struct wl_registry *wl_registry_t; typedef struct wl_compositor *wl_compositor_t; -- cgit v1.2.3