From 8464b7cc3ce419f88aa55bc683854d3752881254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20N=C3=A1ray?= Date: Sun, 23 Jun 2024 10:10:25 +0200 Subject: [PATCH] Bugfix: if not Win32 then BYTE, WORD, DWORD are now correctly set as unsigned in CommonTypes.h. The proper include is also added (cstdint). Probably these 3 types are not used at all, removing this #ifndef _WIN32 block should also work. The problem was that these 3 types are defined as unsigned in Linux (and in Windows anyway) and these signed redefined types conflicted with those. --- src/Core/CommonTypes.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Core/CommonTypes.h b/src/Core/CommonTypes.h index afb7023..ee270aa 100644 --- a/src/Core/CommonTypes.h +++ b/src/Core/CommonTypes.h @@ -2,9 +2,10 @@ #define COMMONTYPES_H #ifndef _WIN32 -typedef int8_t BYTE; -typedef int16_t WORD; -typedef int32_t DWORD; +#include +typedef uint8_t BYTE; +typedef uint16_t WORD; +typedef uint32_t DWORD; #endif #ifdef AMIGA