From 08031a2767e311a43a3341f9ce0a21f04d9881ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 28 Jul 2026 23:16:58 +0300 Subject: [PATCH] Add missing includes This fixes compilation with libc++ 23, which has removed a number of unnecessary transitive includes in its headers. Include in StringConv.h for std::strtoll and std::strtoull. Include for the declarations of malloc/free/realloc/calloc in Alloc.cpp. (Without this, the functions we define end up with C++ name mangling.) Include in IO.cpp for va_start/va_end. --- FEXCore/Source/Common/StringConv.h | 1 + Source/Windows/Common/CRT/Alloc.cpp | 1 + Source/Windows/Common/CRT/IO.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/FEXCore/Source/Common/StringConv.h b/FEXCore/Source/Common/StringConv.h index e4b2dad1e..52ba07315 100644 --- a/FEXCore/Source/Common/StringConv.h +++ b/FEXCore/Source/Common/StringConv.h @@ -4,6 +4,7 @@ #include #include +#include namespace FEXCore::StrConv { template diff --git a/Source/Windows/Common/CRT/Alloc.cpp b/Source/Windows/Common/CRT/Alloc.cpp index 3d5f60de8..0e11be2fb 100644 --- a/Source/Windows/Common/CRT/Alloc.cpp +++ b/Source/Windows/Common/CRT/Alloc.cpp @@ -2,6 +2,7 @@ #define _SECIMP #define _CRTIMP #include +#include #include "../Priv.h" #include diff --git a/Source/Windows/Common/CRT/IO.cpp b/Source/Windows/Common/CRT/IO.cpp index 0f4704a74..8e41b4e1c 100644 --- a/Source/Windows/Common/CRT/IO.cpp +++ b/Source/Windows/Common/CRT/IO.cpp @@ -14,6 +14,7 @@ struct FILE; #include #include #include +#include #include #include #include