File springrts-add-missing-cstdint-headers.patch of Package springrts
From 137158cc4a8147cf7404e8892b08d1da533b1699 Mon Sep 17 00:00:00 2001 From: Alexander Shirokov <shirokovalexs@gmail.com> Date: Wed, 27 Dec 2023 15:23:37 +0100 Subject: [PATCH] Add missing cstdint headers It fixes gcc13 builds by adding the missing header --- rts/Lua/LuaHashString.h | 1 + rts/Sim/Misc/BuildingMaskMap.h | 1 + rts/System/CRC.h | 1 + rts/System/Platform/Misc.h | 1 + rts/System/Sound/ISound.h | 1 + rts/System/SpringHashSet.hpp | 1 + rts/System/StringUtil.h | 1 + rts/lib/luasocket/src/restrictions.cpp | 1 + 8 files changed, 8 insertions(+) diff --git a/rts/Lua/LuaHashString.h b/rts/Lua/LuaHashString.h index 09e612a58fa..c8cf5b560f3 100644 --- a/rts/Lua/LuaHashString.h +++ b/rts/Lua/LuaHashString.h @@ -3,6 +3,7 @@ #ifndef LUA_HASH_STRING_H #define LUA_HASH_STRING_H +#include <cstdint> #include <string> #include "LuaInclude.h" diff --git a/rts/Sim/Misc/BuildingMaskMap.h b/rts/Sim/Misc/BuildingMaskMap.h index 89351a36b0f..b06b30f7661 100644 --- a/rts/Sim/Misc/BuildingMaskMap.h +++ b/rts/Sim/Misc/BuildingMaskMap.h @@ -3,6 +3,7 @@ #ifndef BUILDINGMASKMAP_H #define BUILDINGMASKMAP_H +#include <cstdint> #include <vector> #include "System/creg/creg_cond.h" diff --git a/rts/System/CRC.h b/rts/System/CRC.h index 1abde22faa8..ee25b244e79 100644 --- a/rts/System/CRC.h +++ b/rts/System/CRC.h @@ -3,6 +3,7 @@ #ifndef CRC_H #define CRC_H +#include <cstdint> #include <string> /** @brief An updateable CRC-32 checksum. */ diff --git a/rts/System/Platform/Misc.h b/rts/System/Platform/Misc.h index 37bb44fc2f4..e71e3d29820 100644 --- a/rts/System/Platform/Misc.h +++ b/rts/System/Platform/Misc.h @@ -3,6 +3,7 @@ #ifndef PLATFORM_MISC_H #define PLATFORM_MISC_H +#include <cstdint> #include <string> #include <array> diff --git a/rts/System/Sound/ISound.h b/rts/System/Sound/ISound.h index 2e978daf993..ead0a621e31 100644 --- a/rts/System/Sound/ISound.h +++ b/rts/System/Sound/ISound.h @@ -3,6 +3,7 @@ #ifndef _I_SOUND_H_ #define _I_SOUND_H_ +#include <cstdint> #include <string> class float3; diff --git a/rts/System/SpringHashSet.hpp b/rts/System/SpringHashSet.hpp index 071a6c38601..75d817463f7 100644 --- a/rts/System/SpringHashSet.hpp +++ b/rts/System/SpringHashSet.hpp @@ -6,6 +6,7 @@ #pragma once +#include <cstdint> #include <cstdlib> // malloc #include <iterator> #include <utility> diff --git a/rts/System/StringUtil.h b/rts/System/StringUtil.h index e9ba35bb8ae..2298f4cbb2d 100644 --- a/rts/System/StringUtil.h +++ b/rts/System/StringUtil.h @@ -4,6 +4,7 @@ #define STRING_UTIL_H #include <algorithm> +#include <cstdint> #include <cstring> #include <string> #include <sstream> diff --git a/rts/lib/luasocket/src/restrictions.cpp b/rts/lib/luasocket/src/restrictions.cpp index c9cbbfb1b0e..4ed3a81bb58 100644 --- a/rts/lib/luasocket/src/restrictions.cpp +++ b/rts/lib/luasocket/src/restrictions.cpp @@ -2,6 +2,7 @@ #include "restrictions.h" +#include <cstdint> #include <string> #include "System/SafeUtil.h"