From 1ef5becd4f9ed619b9a2e7493f7a946756700d98 Mon Sep 17 00:00:00 2001 From: drfrag Date: Mon, 17 Dec 2018 22:48:09 +0100 Subject: [PATCH] - Fixed compilation with MinGW-w64 64 bit. --- src/scripting/vm/jit_runtime.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scripting/vm/jit_runtime.cpp b/src/scripting/vm/jit_runtime.cpp index 99d68821b0..c3ea50eeb0 100644 --- a/src/scripting/vm/jit_runtime.cpp +++ b/src/scripting/vm/jit_runtime.cpp @@ -291,7 +291,11 @@ void *AddJitFunction(asmjit::CodeHolder* code, JitCompiler *compiler) RUNTIME_FUNCTION *table = (RUNTIME_FUNCTION*)(unwindptr + unwindInfoSize); table[0].BeginAddress = (DWORD)(ptrdiff_t)(startaddr - baseaddr); table[0].EndAddress = (DWORD)(ptrdiff_t)(endaddr - baseaddr); +#ifndef __MINGW64__ table[0].UnwindInfoAddress = (DWORD)(ptrdiff_t)(unwindptr - baseaddr); +#else + table[0].UnwindData = (DWORD)(ptrdiff_t)(unwindptr - baseaddr); +#endif BOOLEAN result = RtlAddFunctionTable(table, 1, (DWORD64)baseaddr); JitFrames.Push((uint8_t*)table); if (result == 0)