summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-10 09:04:15 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-10 09:04:15 +0100
commit86c09e193ed66420da48a7fd62678286b89dace2 (patch)
tree5d1add9b7fec1f4783407f21ec7ed9ff149e6220 /src/utils.h
parent888ce66e186e2892bc30afb5bb97918d504e0ba1 (diff)
working on event loop
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h10
1 files changed, 10 insertions, 0 deletions
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;