about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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);