mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 10:00:16 +02:00
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:
1 parent
d295d9f08e
commit
08031a2767
3 files changed
+3
No files matched your search
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <concepts>
|
||||
#include <string_view>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace FEXCore::StrConv {
|
||||
template<std::integral T>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define _SECIMP
|
||||
#define _CRTIMP
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include "../Priv.h"
|
||||
#include <rpmalloc/rpmalloc.h>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user