From d47e26586325ec11425cef5c95fc206dc103dbe2 Mon Sep 17 00:00:00 2001 From: suve Date: Thu, 19 Jan 2023 10:34:55 +0100 Subject: [PATCH] Add missing includes Some parts of the code used the fixed-size type uint32_t, which is defined in stdint.h / cstdint - without including said header file. With GCC13, the inter-header dependencies seem to have changed and the file is no longer included transitively, requiring an explicit include. --- src/CBot/CBotFileUtils.h | 1 + src/CBot/CBotInstr/CBotExprLitChar.h | 2 ++ src/CBot/CBotStack.cpp | 1 + src/CBot/CBotVar/CBotVar.h | 1 + src/object/task/taskgoto.h | 1 + 5 files changed, 6 insertions(+) diff --git a/src/CBot/CBotFileUtils.h b/src/CBot/CBotFileUtils.h index dccefc78..757f31a1 100644 --- a/src/CBot/CBotFileUtils.h +++ b/src/CBot/CBotFileUtils.h @@ -19,6 +19,7 @@ #pragma once +#include #include #include diff --git a/src/CBot/CBotInstr/CBotExprLitChar.h b/src/CBot/CBotInstr/CBotExprLitChar.h index ab04cd3d..cca338f8 100644 --- a/src/CBot/CBotInstr/CBotExprLitChar.h +++ b/src/CBot/CBotInstr/CBotExprLitChar.h @@ -21,6 +21,8 @@ #include "CBot/CBotInstr/CBotInstr.h" +#include + namespace CBot { diff --git a/src/CBot/CBotStack.cpp b/src/CBot/CBotStack.cpp index 3a73d373..0d63ea90 100644 --- a/src/CBot/CBotStack.cpp +++ b/src/CBot/CBotStack.cpp @@ -30,6 +30,7 @@ #include "CBot/CBotExternalCall.h" #include +#include #include #include diff --git a/src/CBot/CBotVar/CBotVar.h b/src/CBot/CBotVar/CBotVar.h index c9739e3f..3cb628e9 100644 --- a/src/CBot/CBotVar/CBotVar.h +++ b/src/CBot/CBotVar/CBotVar.h @@ -24,6 +24,7 @@ #include "CBot/CBotEnums.h" #include "CBot/CBotUtils.h" +#include #include namespace CBot diff --git a/src/object/task/taskgoto.h b/src/object/task/taskgoto.h index e502c7c8..57a3cb6f 100644 --- a/src/object/task/taskgoto.h +++ b/src/object/task/taskgoto.h @@ -24,6 +24,7 @@ #include "math/vector.h" #include +#include #include #include