From e23e7af2ae14073f7fec7c8992976f9ae9e489c8 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Sat, 19 Oct 2024 11:29:05 -0400 Subject: types: Typedef ulong Signed-off-by: Andrew Opalach --- include/al/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/al/types.h b/include/al/types.h index 136d8bd..45a8a54 100644 --- a/include/al/types.h +++ b/include/al/types.h @@ -35,6 +35,10 @@ typedef uint64_t u64; typedef float f32; typedef double f64; +// `long` can be a distinctly different size based on the toolchain we're using. +// Use `long` and `ulong`, if needed, for API compatibility. +typedef unsigned long ulong; + #if defined _MSC_VER #include typedef SSIZE_T ssize_t; -- cgit v1.2.3-101-g0448