From c8ebbc657a2d12012efcafcbe1c2c45e58d1f760 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 2 Aug 2021 10:09:19 +0200 Subject: [PATCH] x86 win32 build fix --- core/rec-x86/rec_x86.cpp | 2 +- core/rec-x86/x86_ops.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/rec-x86/rec_x86.cpp b/core/rec-x86/rec_x86.cpp index 8c3505b01..0d199637d 100644 --- a/core/rec-x86/rec_x86.cpp +++ b/core/rec-x86/rec_x86.cpp @@ -44,7 +44,7 @@ static X86Compiler* compiler; static Xbyak::Operand::Code alloc_regs[] { Xbyak::Operand::EBX, Xbyak::Operand::EBP, Xbyak::Operand::ESI, Xbyak::Operand::EDI, (Xbyak::Operand::Code)-1 }; static s8 alloc_fregs[] = { 7, 6, 5, 4, -1 }; alignas(16) static f32 thaw_regs[4]; -static UnwindInfo unwinder; +UnwindInfo unwinder; void X86RegAlloc::doAlloc(RuntimeBlockInfo* block) { diff --git a/core/rec-x86/x86_ops.cpp b/core/rec-x86/x86_ops.cpp index 38c4f2894..f6657f299 100644 --- a/core/rec-x86/x86_ops.cpp +++ b/core/rec-x86/x86_ops.cpp @@ -26,6 +26,9 @@ #include "hw/sh4/sh4_opcode_list.h" #include "hw/sh4/sh4_core.h" #include "hw/mem/_vmem.h" +#include "oslib/oslib.h" + +extern UnwindInfo unwinder; namespace MemSize { enum {