In older MSVC versions that had a __MACHINEI macro, it was defined
to only expand on Intel 32 and 64 bit x86.

Signed-off-by: Martin Storsjö <[email protected]>
---
This seems to not break anything in building VLC for armv7 or
aarch64; I'll include this patch in my next round of nightly
testing of more projects as well.
---
 mingw-w64-headers/crt/intrin.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/mingw-w64-headers/crt/intrin.h b/mingw-w64-headers/crt/intrin.h
index 69653e440..8476455a8 100644
--- a/mingw-w64-headers/crt/intrin.h
+++ b/mingw-w64-headers/crt/intrin.h
@@ -212,6 +212,11 @@ extern "C" {
 #define __MACHINEW64 __MACHINEZ
 #endif
 
+#if !(defined(_X86_) || defined(__x86_64))
+#undef __MACHINEI
+#define __MACHINEI __MACHINEZ
+#endif
+
 #if !(defined(_X86_) || defined(__x86_64))
 #undef __MACHINEX86X
 #define __MACHINEX86X __MACHINEZ
-- 
2.34.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to