Debian Codegraph @

src/3rdparty/libwebp/patches/0001-Fix-Windows-build-for-clang-and-neon.patch

raw
1 diff --git a/src/3rdparty/libwebp/src/dsp/cpu.h b/src/3rdparty/libwebp/src/dsp/cpu.h
2 index c86540f..581ecbd 100644
3 --- a/src/3rdparty/libwebp/src/dsp/cpu.h
4 +++ b/src/3rdparty/libwebp/src/dsp/cpu.h
5 @@ -14,6 +14,8 @@
6 #ifndef WEBP_DSP_CPU_H_
7 #define WEBP_DSP_CPU_H_
8
9 +#include <qglobal.h>
10 +
11 #include <stddef.h>
12
13 #ifdef HAVE_CONFIG_H
14 @@ -48,12 +50,12 @@
15
16 #if !defined(HAVE_CONFIG_H)
17 #if defined(_MSC_VER) && _MSC_VER > 1310 && \
18 - (defined(_M_X64) || defined(_M_IX86))
19 + (defined(_M_X64) || defined(_M_IX86)) && !defined(__clang__)
20 #define WEBP_MSC_SSE2 // Visual C++ SSE2 targets
21 #endif
22
23 #if defined(_MSC_VER) && _MSC_VER >= 1500 && \
24 - (defined(_M_X64) || defined(_M_IX86))
25 + (defined(_M_X64) || defined(_M_IX86)) && !defined(__clang__)
26 #define WEBP_MSC_SSE41 // Visual C++ SSE4.1 targets
27 #endif
28 #endif
29 @@ -106,7 +108,8 @@
30 // vtbl4_u8(); a fix was made in 16.6.
31 #if defined(_MSC_VER) && \
32 ((_MSC_VER >= 1700 && defined(_M_ARM)) || \
33 - (_MSC_VER >= 1926 && (defined(_M_ARM64) || defined(_M_ARM64EC))))
34 + (_MSC_VER >= 1926 && (defined(_M_ARM64) || defined(_M_ARM64EC)))) && \
35 + !defined(__clang__) && (QT_CONFIG_neon == 1)
36 #define WEBP_USE_NEON
37 #define WEBP_USE_INTRINSICS
38 #endif