fix: windows build fail (#7)

This commit is contained in:
zhenyan121
2026-05-03 19:45:14 +08:00
committed by GitHub
parent 9d200f31be
commit d986e03f9c
2 changed files with 6 additions and 1 deletions

View File

@@ -6,8 +6,10 @@
#ifdef _WIN32 #ifdef _WIN32
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <psapi.h> // clang-format off
#include <windows.h> #include <windows.h>
#include <psapi.h>
// clang-format on
typedef LONG(WINAPI* RtlGetVersionPtr)(PRTL_OSVERSIONINFOW); typedef LONG(WINAPI* RtlGetVersionPtr)(PRTL_OSVERSIONINFOW);
#elif defined(__linux__) #elif defined(__linux__)
#include <fstream> #include <fstream>

View File

@@ -3,6 +3,9 @@
#include "Cubed/gameplay/chunk.hpp" #include "Cubed/gameplay/chunk.hpp"
#include "Cubed/gameplay/chunk_generator.hpp" #include "Cubed/gameplay/chunk_generator.hpp"
#include "Cubed/gameplay/tree.hpp" #include "Cubed/gameplay/tree.hpp"
#include <numeric>
namespace Cubed { namespace Cubed {
ForestBuilder::ForestBuilder(ChunkGenerator& chunk_generator) ForestBuilder::ForestBuilder(ChunkGenerator& chunk_generator)
: m_chunk_generator(chunk_generator) {} : m_chunk_generator(chunk_generator) {}