summaryrefslogtreecommitdiff
path: root/include/al
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-10-19 11:29:05 -0400
committerAndrew Opalach <andrew@akon.city> 2024-10-19 11:29:05 -0400
commite23e7af2ae14073f7fec7c8992976f9ae9e489c8 (patch)
tree83de1717cdd110f7aeada273a6e12d1637001ef2 /include/al
parent84f5e594d47abac9a0a450f70ceb2f79322a5c3a (diff)
downloadlibalabaster-e23e7af2ae14073f7fec7c8992976f9ae9e489c8.tar.gz
libalabaster-e23e7af2ae14073f7fec7c8992976f9ae9e489c8.tar.bz2
libalabaster-e23e7af2ae14073f7fec7c8992976f9ae9e489c8.zip
types: Typedef ulong
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'include/al')
-rw-r--r--include/al/types.h4
1 files changed, 4 insertions, 0 deletions
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 <BaseTsd.h>
typedef SSIZE_T ssize_t;