From d986e03f9c52f5134a6c878daf2071ca92f39532 Mon Sep 17 00:00:00 2001 From: zhenyan121 <104683324+zhenyan121@users.noreply.github.com> Date: Sun, 3 May 2026 19:45:14 +0800 Subject: [PATCH] fix: windows build fail (#7) --- include/Cubed/tools/system_info.hpp | 4 +++- src/gameplay/builders/forest_builder.cpp | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/Cubed/tools/system_info.hpp b/include/Cubed/tools/system_info.hpp index 901199e..52f1e63 100644 --- a/include/Cubed/tools/system_info.hpp +++ b/include/Cubed/tools/system_info.hpp @@ -6,8 +6,10 @@ #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN -#include +// clang-format off #include +#include +// clang-format on typedef LONG(WINAPI* RtlGetVersionPtr)(PRTL_OSVERSIONINFOW); #elif defined(__linux__) #include diff --git a/src/gameplay/builders/forest_builder.cpp b/src/gameplay/builders/forest_builder.cpp index e5538ca..6df931d 100644 --- a/src/gameplay/builders/forest_builder.cpp +++ b/src/gameplay/builders/forest_builder.cpp @@ -3,6 +3,9 @@ #include "Cubed/gameplay/chunk.hpp" #include "Cubed/gameplay/chunk_generator.hpp" #include "Cubed/gameplay/tree.hpp" + +#include + namespace Cubed { ForestBuilder::ForestBuilder(ChunkGenerator& chunk_generator) : m_chunk_generator(chunk_generator) {}