From 186f7aa09f5dea2fb5aa15a133534855d0cbdd64 Mon Sep 17 00:00:00 2001 From: Rot127 <45763064+Rot127@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:01:36 +0000 Subject: [PATCH] Fix linking issue on Windows. (#2587) Inline functions are apparently not exposed with default visibility. Fixes: https://github.com/capstone-engine/capstone/issues/2585 --- arch/BPF/BPFMapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/BPF/BPFMapping.c b/arch/BPF/BPFMapping.c index 6b4e1f6d..72901f78 100644 --- a/arch/BPF/BPFMapping.c +++ b/arch/BPF/BPFMapping.c @@ -107,7 +107,7 @@ static const name_map insn_name_maps[BPF_INS_ENDING] = { }; #endif -inline bool BPF_getFeature(const cs_mode mode, const cs_mode feature) +bool BPF_getFeature(const cs_mode mode, const cs_mode feature) { return (mode & feature); }