Fix primitive int types on 64-bit non-Windows targets

`long` is variable-sized on non-Windows targets, so don't use it.

Added some static_asserts to confirm this is the case.
This commit is contained in:
PJB3005
2026-02-24 15:23:52 +01:00
parent a526eab880
commit 4fb2389b43
3 changed files with 17 additions and 0 deletions
+5
View File
@@ -8,8 +8,13 @@ typedef signed char s8;
typedef unsigned char u8;
typedef signed short int s16;
typedef unsigned short int u16;
#if TARGET_PC
typedef signed int s32;
typedef unsigned int u32;
#else
typedef signed long s32;
typedef unsigned long u32;
#endif
typedef signed long long int s64;
typedef unsigned long long int u64;