From 25ddaa08dc872429cd97d990507a7db8f47d76eb Mon Sep 17 00:00:00 2001 From: StarrFox Date: Mon, 25 Sep 2023 14:52:28 -0500 Subject: [PATCH] build: Fix building with capstone < 5 (#1323) ### Problem description This might fix building with capstone 4 as discussed in https://discord.com/channels/789833418631675954/1155669027306340393/1155669027306340393 ### Implementation description moves the max definition inside the if statement that checks for capstone 5 --- lib/libimhex/include/hex/helpers/disassembler.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libimhex/include/hex/helpers/disassembler.hpp b/lib/libimhex/include/hex/helpers/disassembler.hpp index ff032428d..dc4bb87f2 100644 --- a/lib/libimhex/include/hex/helpers/disassembler.hpp +++ b/lib/libimhex/include/hex/helpers/disassembler.hpp @@ -28,9 +28,11 @@ namespace hex { BPF = CS_ARCH_BPF, SH = CS_ARCH_SH, TRICORE = CS_ARCH_TRICORE, + MAX = TRICORE, + # else + MAX = EVM, #endif - MAX = TRICORE, MIN = ARM };