This is similar to what was done in 40f03bb9eb. This isn't necessarily
supported on arm64 (at least not yet) even though it is on x86_64.
---
 mingw-w64-crt/stdio/scanf2-template.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-crt/stdio/scanf2-template.S 
b/mingw-w64-crt/stdio/scanf2-template.S
index 892b7e6..bbd0e21 100644
--- a/mingw-w64-crt/stdio/scanf2-template.S
+++ b/mingw-w64-crt/stdio/scanf2-template.S
@@ -11,11 +11,11 @@
         .p2align 4,,15
         .globl  FCT
         .def    FCT;    .scl    2;      .type   32;     .endef
-#ifdef _WIN64
+#ifdef __x86_64__
         .seh_proc       FCT
 #endif
 FCT:
-#ifdef _WIN64
+#ifdef __x64_86__
         .seh_endprologue
 #endif
 #if defined(_AMD64_) || defined(__x86_64__) || defined(_X86_) || 
defined(__i386__)
@@ -26,7 +26,7 @@ FCT:
 #elif defined(_ARM64_) || defined(__aarch64__)
         b       FWD
 #endif
-#ifdef _WIN64
+#ifdef __x86_64__
         .seh_endproc
 #endif
         .def    FWD;  .scl    2;      .type   32;     .endef
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to