From acc0d451bb83be5c8e349b497a261742bf8cd6f5 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 24 Jun 2025 14:18:45 +0200 Subject: [LA64_DYNAREC] This should help certain builds (for #2769) --- src/dynarec/dynacache_reloc.c | 8 ++++++++ src/dynarec/dynacache_reloc.h | 7 ++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/dynarec/dynacache_reloc.c b/src/dynarec/dynacache_reloc.c index d3d4fa0b..3184ad13 100644 --- a/src/dynarec/dynacache_reloc.c +++ b/src/dynarec/dynacache_reloc.c @@ -241,3 +241,11 @@ uintptr_t RelocGetNext() { return getConst(const_native_next); } + +#ifdef FAKE_GETCONST +inline uintptr_t getConst(native_consts_t which) +{ + (void)which; + return 0; // dummy +} +#endif \ No newline at end of file diff --git a/src/dynarec/dynacache_reloc.h b/src/dynarec/dynacache_reloc.h index 904788ea..dc86d8ac 100644 --- a/src/dynarec/dynacache_reloc.h +++ b/src/dynarec/dynacache_reloc.h @@ -13,11 +13,8 @@ typedef enum native_consts_s { const_native_next, const_last } native_consts_t; -inline uintptr_t getConst(native_consts_t which) -{ - (void)which; - return 0; // dummy -} +#define FAKE_GETCONST +uintptr_t getConst(native_consts_t which); #endif void AddRelocTable64Const(dynarec_native_t* dyn, int ninst, native_consts_t C, int pass); -- cgit 1.4.1