From aa213da7eeec7c8860c82179da756014c68ade78 Mon Sep 17 00:00:00 2001 From: Ghabry Date: Mon, 23 Dec 2024 03:10:27 +0100 Subject: [PATCH] ExeReader: Replace i386 with x86 Is a built-in symbol on Android and breaks the build --- src/exe_reader.cpp | 2 +- src/exe_reader.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exe_reader.cpp b/src/exe_reader.cpp index 29eb08476c..4785f021a8 100644 --- a/src/exe_reader.cpp +++ b/src/exe_reader.cpp @@ -39,7 +39,7 @@ EXEReader::EXEReader(Filesystem_Stream::InputStream core) : corefile(std::move(c switch (machine) { case 0x14c: - file_info.machine_type = MachineType::i386; + file_info.machine_type = MachineType::x86; break; case 0x8664: file_info.machine_type = MachineType::amd64; diff --git a/src/exe_reader.h b/src/exe_reader.h index 80899cfc7e..15abb5ded8 100644 --- a/src/exe_reader.h +++ b/src/exe_reader.h @@ -45,13 +45,13 @@ class EXEReader { enum class MachineType { Unknown, - i386, + x86, amd64 }; static constexpr auto kMachineTypes = lcf::makeEnumTags( "Unknown", - "i386", + "x86", "amd64" );