From 83ba5699acde09a026f399487a51681bff6797be Mon Sep 17 00:00:00 2001 From: Sertimus Date: Sun, 1 Mar 2026 13:28:07 -0500 Subject: [PATCH] Added some missing standard library header delcarations! --- src/log.cpp | 1 + src/resource/audio.cpp | 2 ++ src/resource/font.cpp | 2 ++ src/resource/shader.cpp | 2 ++ src/resource/texture.cpp | 1 + src/resource/xml/anm2.cpp | 1 + src/resource/xml/area.cpp | 1 + src/resource/xml/character.cpp | 2 ++ src/resource/xml/character_preview.cpp | 2 ++ src/resource/xml/cursor.cpp | 4 +++- src/resource/xml/dialogue.cpp | 2 ++ src/resource/xml/item.cpp | 2 ++ src/resource/xml/menu.cpp | 2 ++ src/resource/xml/play.cpp | 4 +++- src/resource/xml/save.cpp | 2 ++ src/resource/xml/settings.cpp | 2 ++ src/util/physfs.cpp | 2 ++ 17 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/log.cpp b/src/log.cpp index ea95be1..44cc7ac 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -1,6 +1,7 @@ #include "log.hpp" #include +#include #include #include #include diff --git a/src/resource/audio.cpp b/src/resource/audio.cpp index 992bb3b..c31d132 100644 --- a/src/resource/audio.cpp +++ b/src/resource/audio.cpp @@ -3,7 +3,9 @@ #include #include "../log.hpp" + #include +#include #include using namespace game::util; diff --git a/src/resource/font.cpp b/src/resource/font.cpp index ac63e27..c393fd8 100644 --- a/src/resource/font.cpp +++ b/src/resource/font.cpp @@ -2,6 +2,8 @@ #include "../log.hpp" +#include + using namespace game::util; static ImFont* default_font_fallback_get() diff --git a/src/resource/shader.cpp b/src/resource/shader.cpp index c17ad38..2484b36 100644 --- a/src/resource/shader.cpp +++ b/src/resource/shader.cpp @@ -2,6 +2,8 @@ #include "../log.hpp" +#include + namespace game::resource { Shader::Shader(const char* vertex, const char* fragment) diff --git a/src/resource/texture.cpp b/src/resource/texture.cpp index d3a37aa..14f944c 100644 --- a/src/resource/texture.cpp +++ b/src/resource/texture.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include "../log.hpp" diff --git a/src/resource/xml/anm2.cpp b/src/resource/xml/anm2.cpp index cbd555f..d3c21b5 100644 --- a/src/resource/xml/anm2.cpp +++ b/src/resource/xml/anm2.cpp @@ -5,6 +5,7 @@ #include "../../log.hpp" +#include #include using namespace tinyxml2; diff --git a/src/resource/xml/area.cpp b/src/resource/xml/area.cpp index 12d3d43..bca23c3 100644 --- a/src/resource/xml/area.cpp +++ b/src/resource/xml/area.cpp @@ -1,6 +1,7 @@ #include "area.hpp" #include "../../log.hpp" +#include #include "util.hpp" diff --git a/src/resource/xml/character.cpp b/src/resource/xml/character.cpp index e8cc1ff..d8eada5 100644 --- a/src/resource/xml/character.cpp +++ b/src/resource/xml/character.cpp @@ -6,6 +6,8 @@ #include "../../util/preferences.hpp" #include "util.hpp" +#include + using namespace tinyxml2; using namespace game::util; diff --git a/src/resource/xml/character_preview.cpp b/src/resource/xml/character_preview.cpp index 3781c82..82f2c02 100644 --- a/src/resource/xml/character_preview.cpp +++ b/src/resource/xml/character_preview.cpp @@ -6,6 +6,8 @@ #include "../../util/preferences.hpp" #include "util.hpp" +#include + using namespace tinyxml2; using namespace game::util; diff --git a/src/resource/xml/cursor.cpp b/src/resource/xml/cursor.cpp index 4868fff..70087ab 100644 --- a/src/resource/xml/cursor.cpp +++ b/src/resource/xml/cursor.cpp @@ -2,6 +2,8 @@ #include "../../log.hpp" +#include + using namespace tinyxml2; using namespace game::util; @@ -49,4 +51,4 @@ namespace game::resource::xml } bool Cursor::is_valid() const { return isValid; }; -} \ No newline at end of file +} diff --git a/src/resource/xml/dialogue.cpp b/src/resource/xml/dialogue.cpp index 02ccffd..bd6bc15 100644 --- a/src/resource/xml/dialogue.cpp +++ b/src/resource/xml/dialogue.cpp @@ -4,6 +4,8 @@ #include "../../log.hpp" #include "../../util/math.hpp" +#include + using namespace tinyxml2; using namespace game::util; diff --git a/src/resource/xml/item.cpp b/src/resource/xml/item.cpp index ebe171d..509d5de 100644 --- a/src/resource/xml/item.cpp +++ b/src/resource/xml/item.cpp @@ -8,6 +8,8 @@ #include "../../log.hpp" +#include + #include "util.hpp" using namespace tinyxml2; diff --git a/src/resource/xml/menu.cpp b/src/resource/xml/menu.cpp index 0eff25d..6ecd5c2 100644 --- a/src/resource/xml/menu.cpp +++ b/src/resource/xml/menu.cpp @@ -2,6 +2,8 @@ #include "../../log.hpp" +#include + #include "util.hpp" using namespace tinyxml2; diff --git a/src/resource/xml/play.cpp b/src/resource/xml/play.cpp index e735ee1..ada94ef 100644 --- a/src/resource/xml/play.cpp +++ b/src/resource/xml/play.cpp @@ -3,6 +3,8 @@ #include "../../log.hpp" #include "util.hpp" +#include + using namespace tinyxml2; using namespace game::util; @@ -64,4 +66,4 @@ namespace game::resource::xml } bool Play::is_valid() const { return isValid; }; -} \ No newline at end of file +} diff --git a/src/resource/xml/save.cpp b/src/resource/xml/save.cpp index 8fafbff..f96aa71 100644 --- a/src/resource/xml/save.cpp +++ b/src/resource/xml/save.cpp @@ -5,6 +5,8 @@ #include "../../log.hpp" +#include + #ifdef __EMSCRIPTEN__ #include "../../util/web_filesystem.hpp" #endif diff --git a/src/resource/xml/settings.cpp b/src/resource/xml/settings.cpp index 4579471..af78b57 100644 --- a/src/resource/xml/settings.cpp +++ b/src/resource/xml/settings.cpp @@ -5,6 +5,8 @@ #include "../../log.hpp" +#include + #ifdef __EMSCRIPTEN__ #include "../../util/web_filesystem.hpp" #endif diff --git a/src/util/physfs.cpp b/src/util/physfs.cpp index 116ee00..23456ee 100644 --- a/src/util/physfs.cpp +++ b/src/util/physfs.cpp @@ -7,6 +7,8 @@ #include "../log.hpp" +#include + namespace game::util::physfs { std::string path_normalize(std::string_view path)