Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libwebp/patches/0003-clang-cl-sse2-sse41.patch
9906 views
1
diff --git a/thirdparty/libwebp/src/dsp/cpu.h b/thirdparty/libwebp/src/dsp/cpu.h
2
index c86540f280..4dbe607aec 100644
3
--- a/thirdparty/libwebp/src/dsp/cpu.h
4
+++ b/thirdparty/libwebp/src/dsp/cpu.h
5
@@ -47,12 +47,12 @@
6
// x86 defines.
7
8
#if !defined(HAVE_CONFIG_H)
9
-#if defined(_MSC_VER) && _MSC_VER > 1310 && \
10
+#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER > 1310 && \
11
(defined(_M_X64) || defined(_M_IX86))
12
#define WEBP_MSC_SSE2 // Visual C++ SSE2 targets
13
#endif
14
15
-#if defined(_MSC_VER) && _MSC_VER >= 1500 && \
16
+#if defined(_MSC_VER) && !defined(__clang__) && _MSC_VER >= 1500 && \
17
(defined(_M_X64) || defined(_M_IX86))
18
#define WEBP_MSC_SSE41 // Visual C++ SSE4.1 targets
19
#endif
20
21