summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2022-06-26 21:02:32 -0400
committerMatt Turner <mattst88@gmail.com>2023-07-09 01:56:40 +0000
commit47d3fbe38fc88085e644b737f3eff92865ebd65a (patch)
tree5ce9a1f1472c3f9883cbc58bec28180b3e847a3c
parent55845c3dd32ebeb08eee0eb51b60989da5dc1e05 (diff)
mmx: use xmmintrin.h if building with SSE2
As of mingw-w64 commit 463f00975, winnt.h includes emmintrin.h when compiling with SSE2, causing redefinition errors for our copied MMX intrinsics. If the build is assuming SSE2 anyway, just use the system header instead.
-rw-r--r--pixman/pixman-mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c
index f7f5560..3a85616 100644
--- a/pixman/pixman-mmx.c
+++ b/pixman/pixman-mmx.c
@@ -60,7 +60,7 @@ _mm_empty (void)
#endif
#ifdef USE_X86_MMX
-# if (defined(__SUNPRO_C) || defined(_MSC_VER) || defined(_WIN64))
+# if (defined(__SSE2__) || defined(__SUNPRO_C) || defined(_MSC_VER) || defined(_WIN64))
# include <xmmintrin.h>
# else
/* We have to compile with -msse to use xmmintrin.h, but that causes SSE