From 61300792a0c75c6fd399d89ac538ccdfe30f908d Mon Sep 17 00:00:00 2001 From: "Shane Michael Mathews (Personal Account)" Date: Sat, 1 Aug 2026 11:48:48 -0400 Subject: [PATCH] fix(recomp): include before elfio in elf_parser.h (#199) 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 c8cafe5..10f9e4c 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