From d1a1aed23ec28f1f3ac28c49cdbd833440d099ab Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 16 Mar 2024 15:07:18 +0100 Subject: [PATCH] Reduce unnecessary include in serialize.h --- src/content_nodemeta.cpp | 1 + src/nodemetadata.cpp | 1 + src/object_properties.cpp | 1 + src/script/common/c_converter.cpp | 1 + src/serialization.cpp | 2 +- src/util/serialize.h | 2 +- 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp index 39743c11f73e..f3ffc4befec2 100644 --- a/src/content_nodemeta.cpp +++ b/src/content_nodemeta.cpp @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "nodetimer.h" #include "inventory.h" #include "log.h" +#include "debug.h" #include "serialization.h" #include "util/serialize.h" #include "util/string.h" diff --git a/src/nodemetadata.cpp b/src/nodemetadata.cpp index 43770fee1a3f..a11503ebe999 100644 --- a/src/nodemetadata.cpp +++ b/src/nodemetadata.cpp @@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "inventory.h" #include "irrlicht_changes/printing.h" #include "log.h" +#include "debug.h" #include "util/serialize.h" #include "constants.h" // MAP_BLOCKSIZE #include diff --git a/src/object_properties.cpp b/src/object_properties.cpp index df3d245f9fbd..5fb6a7d414d4 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlicht_changes/printing.h" #include "irrlichttypes_bloated.h" #include "exceptions.h" +#include "log.h" #include "util/serialize.h" #include diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp index a7b18365a929..446f88f3de9c 100644 --- a/src/script/common/c_converter.cpp +++ b/src/script/common/c_converter.cpp @@ -25,6 +25,7 @@ extern "C" { #include "util/numeric.h" #include "util/serialize.h" #include "util/string.h" +#include "log.h" #include "common/c_converter.h" #include "common/c_internal.h" #include "constants.h" diff --git a/src/serialization.cpp b/src/serialization.cpp index 689e4d986b51..4134126ca886 100644 --- a/src/serialization.cpp +++ b/src/serialization.cpp @@ -18,7 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "serialization.h" - +#include "log.h" #include "util/serialize.h" #include diff --git a/src/util/serialize.h b/src/util/serialize.h index 00250ece53d9..d7526a7654fa 100644 --- a/src/util/serialize.h +++ b/src/util/serialize.h @@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_bloated.h" #include "exceptions.h" // for SerializationError -#include "debug.h" // for assert #include "ieee_float.h" #include "config.h" @@ -39,6 +38,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #endif #endif #include // for memcpy +#include #include #include #include