Skip to content

Commit

Permalink
fix(build): add missing includes for GCC 14
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed May 8, 2024
1 parent 3d67ed5 commit 89af81c
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CutsceneLibrary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "phoenix/buffer.hh"

#include <algorithm>

namespace zenkit {
CutsceneLibrary CutsceneLibrary::parse(phoenix::buffer& buf) {
CutsceneLibrary msgs {};
Expand Down
2 changes: 2 additions & 0 deletions src/DaedalusScript.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#include "phoenix/buffer.hh"

#include <algorithm>

namespace zenkit {
DaedalusSymbolNotFound::DaedalusSymbolNotFound(std::string&& sym_name)
: DaedalusScriptError("symbol not found: " + sym_name), name(sym_name) {}
Expand Down
1 change: 1 addition & 0 deletions src/Internal.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: MIT
#pragma once
#include "zenkit/Logger.hh"
#include <cstdint>

#ifndef _MSC_VER
#define ZKLOGT(...) zenkit::Logger::log(zenkit::LogLevel::TRACE, __VA_ARGS__)
Expand Down
2 changes: 2 additions & 0 deletions src/Mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "zenkit/Archive.hh"
#include "zenkit/Stream.hh"

#include <algorithm>

namespace zenkit {
[[maybe_unused]] static constexpr auto MESH_VERSION_G1 = 9;
static constexpr auto MESH_VERSION_G2 = 265;
Expand Down
1 change: 1 addition & 0 deletions src/SaveGame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "Internal.hh"

#include <algorithm>
#include <set>

namespace zenkit {
Expand Down
1 change: 1 addition & 0 deletions src/Stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <glm/gtc/type_ptr.hpp>

#include <algorithm>
#include <cstring>
#include <fstream>

Expand Down
1 change: 1 addition & 0 deletions src/__legacy_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include "Internal.hh"

#include <algorithm>
#include <cstddef>
#include <fstream>

Expand Down
1 change: 1 addition & 0 deletions src/archive/ArchiveBinsafe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <glm/gtc/type_ptr.hpp>

#include <algorithm>
#include <charconv>
#include <cstring>

Expand Down
2 changes: 2 additions & 0 deletions src/vobs/Misc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "../Internal.hh"

#include <algorithm>

namespace zenkit {
void VAnimate::parse(VAnimate& obj, ReadArchive& r, GameVersion version) {
obj.load(r, version);
Expand Down
2 changes: 2 additions & 0 deletions src/world/BspTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

#include "../Internal.hh"

#include <algorithm>

namespace zenkit {
static constexpr auto version_g1 = 0x2090000;
[[maybe_unused]] static constexpr auto version_g2 = 0x4090000;
Expand Down

0 comments on commit 89af81c

Please sign in to comment.