mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
fix: windows build fail (#7)
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user