This fixes <https://sourceforge.net/p/mingw-w64/bugs/712/>.

Signed-off-by: Liu Hao <lh_mo...@126.com>


-- 
Best regards,
LH_Mouse
>From d48ee23fb9c6e756f00372850733d96f37e2ff1f Mon Sep 17 00:00:00 2001
From: Liu Hao <lh_mo...@126.com>
Date: Fri, 16 Mar 2018 15:59:38 +0800
Subject: [PATCH] include/winnt.h: involve <emmintrin.h> when attempting to use
 SSE2

This fixes <https://sourceforge.net/p/mingw-w64/bugs/712/>.

Signed-off-by: Liu Hao <lh_mo...@126.com>
---
 mingw-w64-headers/include/winnt.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mingw-w64-headers/include/winnt.h 
b/mingw-w64-headers/include/winnt.h
index efcd74d0..ded70f5e 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -1555,6 +1555,7 @@ extern "C" {
 # if defined(__cplusplus)
 }
 # endif
+#include <emmintrin.h>
 
 #define FastFence __faststorefence
 #define LoadFence _mm_lfence
@@ -2144,6 +2145,7 @@ extern "C" {
 #if defined(__i386__) && !defined(__x86_64)
 
 #ifdef __SSE2__
+#include <emmintrin.h>
 #define YieldProcessor _mm_pause
 #define MemoryBarrier _mm_mfence
 #else
-- 
2.16.2

------------------------------------------------------------------------------
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