From 56d1c02873de294c74afb68aed762b5763975c00 Mon Sep 17 00:00:00 2001 From: Shane Michael Mathews Date: Sat, 1 Aug 2026 10:51:02 -0400 Subject: [PATCH] fix(recomp): include before elfio in elf_parser.h ELFIO, pinned at Release_3.12 via FetchContent, uses uint16_t, uint32_t and uint64_t in elf_types.hpp without including itself. Newer libstdc++ releases trimmed the transitive includes that used to supply those typedefs, so building elf_parser.cpp fails: elf_types.hpp:30:20: error: 'uint16_t' does not name a type 30 | using Elf_Half = uint16_t; Include ahead of elfio.hpp so the typedefs are visible when that header is processed. Header-only change; no behaviour is affected. --- ps2xRecomp/include/ps2recomp/elf_parser.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ps2xRecomp/include/ps2recomp/elf_parser.h b/ps2xRecomp/include/ps2recomp/elf_parser.h index c8cafe5ee..10f9e4ce8 100644 --- a/ps2xRecomp/include/ps2recomp/elf_parser.h +++ b/ps2xRecomp/include/ps2recomp/elf_parser.h @@ -1,6 +1,7 @@ #ifndef PS2RECOMP_ELF_PARSER_H #define PS2RECOMP_ELF_PARSER_H +#include #include #include #include