mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-26 08:51:05 -04:00
fix(recomp): include <cstdint> 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 <cstdint> 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 <cstdint> ahead of elfio.hpp so the typedefs are visible when
that header is processed. Header-only change; no behaviour is affected.
This commit is contained in:
committed by
GitHub
parent
d87bff4256
commit
61300792a0
@@ -1,6 +1,7 @@
|
||||
#ifndef PS2RECOMP_ELF_PARSER_H
|
||||
#define PS2RECOMP_ELF_PARSER_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <elfio/elfio.hpp>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user