Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[ci] Fix macOS "no type named 'free' in namespace 'std' (#4347)

lizzief6e768603881
diff --git a/externals/tz/tz/tz.h b/externals/tz/tz/tz.h
index e70092a987..821d60708a 100644
--- a/externals/tz/tz/tz.h
+++ b/externals/tz/tz/tz.h
@@ -11,6 +11,7 @@
#include <limits>
#include <span>
#include <array>
+#include <algorithm>
#include <time.h>
namespace Tz {
diff --git a/src/common/demangle.cpp b/src/common/demangle.cpp
index 8f76a884a8..d5ebc23c0a 100644
--- a/src/common/demangle.cpp
+++ b/src/common/demangle.cpp
@@ -5,6 +5,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include <string>
+#include <cstdlib>
#include <string_view>
#ifdef _WIN32
#include <llvm/Demangle/Demangle.h>