From 64656a6eb38584afe37fbc9094d58318fc9a92b7 Mon Sep 17 00:00:00 2001 From: TwistedUmbrella Date: Tue, 3 Jul 2018 09:09:30 -0400 Subject: [PATCH] rec_x64: Avoid recipe for target failed error --- core/emitter/x86_emitter.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/emitter/x86_emitter.h b/core/emitter/x86_emitter.h index ca0598beb..5e3561b78 100644 --- a/core/emitter/x86_emitter.h +++ b/core/emitter/x86_emitter.h @@ -229,6 +229,7 @@ struct /*__declspec(dllexport)*/ x86_ptr_imm this->ptr=ptr; } +#if HOST_CPU != CPU_X64 #ifndef WIN32 template x86_ptr_imm(Rv(* ptr)(Args...)) @@ -242,6 +243,7 @@ struct /*__declspec(dllexport)*/ x86_ptr_imm { this->ptr= reinterpret_cast(ptr); } +#endif }; enum x86_mrm_mod