From 61f7ed5686773ab3110d523c0a8b6d12e1b90418 Mon Sep 17 00:00:00 2001 From: Thorsten Otto Date: Wed, 20 Mar 2024 13:17:59 +0100 Subject: [PATCH] Include in files that need it Without this, operations on fixed values are miscompiled on big-endian machines --- common/fixed.h | 1 + tiberiandawn/defines.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/fixed.h b/common/fixed.h index e79a99db..b8da0b45 100644 --- a/common/fixed.h +++ b/common/fixed.h @@ -36,6 +36,7 @@ #define FIXED_H #include +#include "endianness.h" /* ** This is a very simple fixed point class that functions like a regular integral type. However diff --git a/tiberiandawn/defines.h b/tiberiandawn/defines.h index f69fc694..82ff91d8 100644 --- a/tiberiandawn/defines.h +++ b/tiberiandawn/defines.h @@ -35,6 +35,7 @@ #define DEFINES_H #include "common/bitfields.h" +#include "common/endianness.h" /********************************************************************** ** If defined, then the advanced balancing features will be enabled