vcpkg/ports/pixman/missing_intrin_include.patch
Alexander Neumann dc9d737351
[pixman] add missing include and fix clang-cl build (#26186)
* pixman: add missing include and fix clang-cl builds

* v db

* use correct <> isntead of ""

* v db

* make the patch depend on _MSC_VER

* v db

* fix bug in vcpkg_configure_meson not linking WindowsApp.lib
fix another bug that system=windowsstore which meson doesn recognize

* bump port version

* v db
2022-08-17 12:36:12 -07:00

16 lines
387 B
Diff

diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c
index 0130b7bfa..d3d0fe1d9 100644
--- a/pixman/pixman-x86.c
+++ b/pixman/pixman-x86.c
@@ -24,7 +24,10 @@
#endif
#include "pixman-private.h"
+#ifdef _MSC_VER
+#include <intrin.h>
+#endif
#if defined(USE_X86_MMX) || defined (USE_SSE2) || defined (USE_SSSE3)
/* The CPU detection code needs to be in a file not compiled with