about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-06-24 14:18:45 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-06-24 14:18:45 +0200
commitacc0d451bb83be5c8e349b497a261742bf8cd6f5 (patch)
tree56c8b6d5f1914198b12e535798f6526c61736749 /src
parent1f5ce7ec18c563a701bbe5fb69eaa7b76252ecd8 (diff)
downloadbox64-acc0d451bb83be5c8e349b497a261742bf8cd6f5.tar.gz
box64-acc0d451bb83be5c8e349b497a261742bf8cd6f5.zip
[LA64_DYNAREC] This should help certain builds (for #2769)
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/dynacache_reloc.c8
-rw-r--r--src/dynarec/dynacache_reloc.h7
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);