diff options
Diffstat (limited to 'src/utils.h')
| -rw-r--r-- | src/utils.h | 10 |
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; |
