From 0d3ccb5c395b783fd6ea505b66069a938dae9933 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 29 May 2025 15:31:19 +0200 Subject: [PATCH] add comment --- src/doomtype.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/doomtype.h b/src/doomtype.h index 6736e678e..88e9ce5a4 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -158,6 +158,11 @@ size_t strlcpy(char *dst, const char *src, size_t siz); #ifndef _WIN32 #include +// dont use stdbools _BOOL type +// its smaller (1 byte) than the old interger bool (4 bytes) +// which results in packed struct sizes being mismatched between vanilla and this +// however we gotta still include stdbool cause since c23 true and false are keywords +// which we cant use as enumeration constants typedef int32_t boolean; #else #define false FALSE