From e21f899989ec7f4559516ec6481d6febfc7d4dfa Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 14 Dec 2021 11:43:10 +0100 Subject: [PATCH] - added all #includes needed to compile on Windows without using precompiled headers. --- source/common/filesystem/resourcefile.h | 1 + source/common/rendering/hwrenderer/data/hw_dynlightdata.h | 2 ++ source/common/rendering/hwrenderer/data/hw_shadowmap.h | 1 + source/common/thirdparty/base64.h | 2 ++ source/common/utility/i_time.cpp | 1 + source/thirdparty/src/md4.cpp | 1 + 6 files changed, 8 insertions(+) diff --git a/source/common/filesystem/resourcefile.h b/source/common/filesystem/resourcefile.h index 5e9276c76..d64c278e8 100644 --- a/source/common/filesystem/resourcefile.h +++ b/source/common/filesystem/resourcefile.h @@ -6,6 +6,7 @@ #include #include "files.h" +#include "zstring.h" struct LumpFilterInfo { diff --git a/source/common/rendering/hwrenderer/data/hw_dynlightdata.h b/source/common/rendering/hwrenderer/data/hw_dynlightdata.h index e24e49bed..4631fd434 100644 --- a/source/common/rendering/hwrenderer/data/hw_dynlightdata.h +++ b/source/common/rendering/hwrenderer/data/hw_dynlightdata.h @@ -23,6 +23,8 @@ #ifndef __GLC_DYNLIGHT_H #define __GLC_DYNLIGHT_H +#include "tarray.h" + struct FDynLightData { TArray arrays[3]; diff --git a/source/common/rendering/hwrenderer/data/hw_shadowmap.h b/source/common/rendering/hwrenderer/data/hw_shadowmap.h index e755c0f59..3bc2eb98f 100644 --- a/source/common/rendering/hwrenderer/data/hw_shadowmap.h +++ b/source/common/rendering/hwrenderer/data/hw_shadowmap.h @@ -4,6 +4,7 @@ #include "hw_aabbtree.h" #include "stats.h" #include +#include class IDataBuffer; diff --git a/source/common/thirdparty/base64.h b/source/common/thirdparty/base64.h index f98e031fa..1f1bde61c 100644 --- a/source/common/thirdparty/base64.h +++ b/source/common/thirdparty/base64.h @@ -6,6 +6,8 @@ #ifndef BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A #define BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A +#include "tarray.h" + TArray base64_encode(unsigned char const* bytes_to_encode, size_t in_len); void base64_decode(void* memory, size_t len, const char* encoded_string); diff --git a/source/common/utility/i_time.cpp b/source/common/utility/i_time.cpp index 0d1db5de8..22516ed45 100644 --- a/source/common/utility/i_time.cpp +++ b/source/common/utility/i_time.cpp @@ -35,6 +35,7 @@ #include #include +#include #include "i_time.h" //========================================================================== diff --git a/source/thirdparty/src/md4.cpp b/source/thirdparty/src/md4.cpp index 4fce2546f..18874594f 100644 --- a/source/thirdparty/src/md4.cpp +++ b/source/thirdparty/src/md4.cpp @@ -29,6 +29,7 @@ typedef unsigned char const *RPOINTER; typedef unsigned short UINT2; typedef unsigned int UINT4; +#include #include "md4.h" /* Constants for MD4Transform routine.