From e279fc2fe6a73a0d7aa4513fb05aeb1ac2eb1300 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Thu, 23 Jan 2020 23:19:09 +0100 Subject: [PATCH] Revert "Treat booleans as bool" This reverts commit 2dcf237dd21535659660871b1426d10b72d1bfb8. As BOOLs are loaded as 32bit uint the swap would break the value on big endian if mapped to bool (8bit) --- SourceS/miniwin/misc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SourceS/miniwin/misc.h b/SourceS/miniwin/misc.h index 5a09a2ceb..b4e011179 100644 --- a/SourceS/miniwin/misc.h +++ b/SourceS/miniwin/misc.h @@ -8,6 +8,7 @@ constexpr auto DVL_MAX_PATH = 260; typedef char CHAR; typedef uint16_t SHORT; typedef int32_t LONG; +typedef uint8_t BOOLEAN; typedef LONG *PLONG; typedef uint32_t ULONG; @@ -19,7 +20,7 @@ typedef UCHAR *PUCHAR; typedef char *PSZ; typedef uint32_t DWORD; -typedef bool BOOL, BOOLEAN, WINBOOL; +typedef int BOOL, WINBOOL; typedef unsigned char BYTE; typedef unsigned short WORD; typedef float FLOAT;