From c7b95d1c9e629d241c2529ad21b1cdae376586ea Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 28 May 2023 19:03:43 +0200 Subject: [PATCH] Fix build with GCC 13.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openmw/apps/openmw/mwinput/controlswitch.hpp:32:49: error: ‘uint32_t’ has not been declared 32 | void readRecord(ESM::ESMReader& reader, uint32_t type); | ^~~~~~~~ openmw/apps/esmtool/labels.hpp:63:25: error: ‘uint32_t’ was not declared in this scope 63 | std::string recordFlags(uint32_t flags); | ^~~~~~~~ openmw/components/detournavigator/recastmesh.hpp:91:14: error: ‘uint8_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 91 | std::uint8_t mLength; | ^~~~~~~ | wint_t openmw/components/platform/file.hpp:9:23: error: found ‘:’ in nested-name-specifier, expected ‘::’ 9 | enum class Handle : intptr_t | ^ | :: openmw/components/settings/settings.hpp:63:21: error: ‘int64_t’ in namespace ‘std’ does not name a type 63 | static std::int64_t getInt64(std::string_view setting, std::string_view category); | ^~~~~~~ openmw/components/esm/common.cpp:5:38: error: ‘uint32_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’? 5 | std::string printName(const std::uint32_t typeId) | ^~~~~~~~ | wint_t --- apps/esmtool/labels.hpp | 1 + apps/openmw/mwinput/controlswitch.hpp | 1 + components/detournavigator/recastmesh.hpp | 1 + components/esm/common.cpp | 4 +++- components/platform/file.hpp | 1 + components/settings/settings.hpp | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/esmtool/labels.hpp b/apps/esmtool/labels.hpp index 8450ccfa03..66699e277b 100644 --- a/apps/esmtool/labels.hpp +++ b/apps/esmtool/labels.hpp @@ -2,6 +2,7 @@ #define OPENMW_ESMTOOL_LABELS_H #include +#include std::string bodyPartLabel(int idx); std::string meshPartLabel(int idx); diff --git a/apps/openmw/mwinput/controlswitch.hpp b/apps/openmw/mwinput/controlswitch.hpp index b4353c31f5..36ff1235a7 100644 --- a/apps/openmw/mwinput/controlswitch.hpp +++ b/apps/openmw/mwinput/controlswitch.hpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace ESM { diff --git a/components/detournavigator/recastmesh.hpp b/components/detournavigator/recastmesh.hpp index df9d6414d5..aa6d55b582 100644 --- a/components/detournavigator/recastmesh.hpp +++ b/components/detournavigator/recastmesh.hpp @@ -17,6 +17,7 @@ #include #include #include +#include namespace DetourNavigator { diff --git a/components/esm/common.cpp b/components/esm/common.cpp index d04033edef..5f04d01f84 100644 --- a/components/esm/common.cpp +++ b/components/esm/common.cpp @@ -1,4 +1,6 @@ -#include "sstream" +#include "common.hpp" + +#include namespace ESM { diff --git a/components/platform/file.hpp b/components/platform/file.hpp index 8faf9c67cb..e8219c1ed8 100644 --- a/components/platform/file.hpp +++ b/components/platform/file.hpp @@ -3,6 +3,7 @@ #include #include +#include namespace Platform::File { diff --git a/components/settings/settings.hpp b/components/settings/settings.hpp index 178b8d3ebc..3481f4c24a 100644 --- a/components/settings/settings.hpp +++ b/components/settings/settings.hpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include