Add missing includes

This fixes compilation with libc++ 23, which has removed a number
of unnecessary transitive includes in its headers.

Include <cstdlib> in StringConv.h for std::strtoll and std::strtoull.

Include <cstdlib> for the declarations of malloc/free/realloc/calloc
in Alloc.cpp. (Without this, the functions we define end up with
C++ name mangling.)

Include <stdarg.h> in IO.cpp for va_start/va_end.
This commit is contained in:
Martin Storsjö committed 2026-07-28 23:17:43 +03:00
1 parent d295d9f08e
commit 08031a2767
3 files changed
+3

No files matched your search

+1
View File
@@ -4,6 +4,7 @@
#include <concepts>
#include <string_view>
#include <cstdlib>
namespace FEXCore::StrConv {
template<std::integral T>
+1
View File
@@ -2,6 +2,7 @@
#define _SECIMP
#define _CRTIMP
#include <cstdint>
#include <cstdlib>
#include "../Priv.h"
#include <rpmalloc/rpmalloc.h>
+1
View File
@@ -14,6 +14,7 @@ struct FILE;
#include <cerrno>
#include <io.h>
#include <ctype.h>
#include <stdarg.h>
#include <wchar.h>
#include <windef.h>
#include <winternl.h>