Fix emscripten and macOS builds.

This commit is contained in:
Martín Lucas Golini
2023-06-28 00:59:16 -03:00
parent 0a9059771e
commit 93c3971c94
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -12,8 +12,14 @@
#include <algorithm>
#include <args/args.hxx>
#include <filesystem>
#include <malloc.h>
#include <nlohmann/json.hpp>
#if EE_PLATFORM == EE_PLATFORM_LINUX
// For malloc_trim, which is a GNU extension
extern "C" {
#include <malloc.h>
}
#endif
namespace fs = std::filesystem;
using json = nlohmann::json;