|
From: Hugo Beauzée-L. <hu...@be...> - 2018-07-12 07:48:29
|
The function isn't available on IA-32, and neither are some of the types it
uses.
---
mingw-w64-libraries/winstorecompat/src/RtlAddFunctionTable.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mingw-w64-libraries/winstorecompat/src/RtlAddFunctionTable.c b/mingw-w64-libraries/winstorecompat/src/RtlAddFunctionTable.c
index d1c31635..241c3e0f 100644
--- a/mingw-w64-libraries/winstorecompat/src/RtlAddFunctionTable.c
+++ b/mingw-w64-libraries/winstorecompat/src/RtlAddFunctionTable.c
@@ -22,6 +22,8 @@
DEALINGS IN THE SOFTWARE.
*/
+#if defined(__x86_64__) || defined(__arm__)
+
#define RtlAddFunctionTable __RtlAddFunctionTable
#include <windows.h>
#undef RtlAddFunctionTable
@@ -31,8 +33,5 @@ BOOLEAN __cdecl RtlAddFunctionTable(PRUNTIME_FUNCTION FunctionTable, DWORD Entry
return FALSE;
}
-#ifdef _X86_
-BOOLEAN (NTAPI *__MINGW_IMP_SYMBOL(RtlAddFunctionTable))(PRUNTIME_FUNCTION FunctionTable, DWORD EntryCount, DWORD64 BaseAddress) asm("__imp__RtlAddFunctionTable") = RtlAddFunctionTable;
-#else
BOOLEAN (NTAPI *__MINGW_IMP_SYMBOL(RtlAddFunctionTable))(PRUNTIME_FUNCTION FunctionTable, DWORD EntryCount, DWORD64 BaseAddress) asm("__imp_RtlAddFunctionTable") = RtlAddFunctionTable;
#endif
--
2.18.0
|