"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtimageformats/src/3rdparty/libwebp/patches/0001-Fix-Windows-build-for-clang-and-neon.patch" (6 Jun 2022, 1275 Bytes) of package /linux/misc/qt-everywhere-src-6.3.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 diff --git a/src/3rdparty/libwebp/src/dsp/dsp.h b/src/3rdparty/libwebp/src/dsp/dsp.h
    2 index c4f57e4..607b2e2 100644
    3 --- a/src/3rdparty/libwebp/src/dsp/dsp.h
    4 +++ b/src/3rdparty/libwebp/src/dsp/dsp.h
    5 @@ -14,6 +14,8 @@
    6  #ifndef WEBP_DSP_DSP_H_
    7  #define WEBP_DSP_DSP_H_
    8  
    9 +#include <qglobal.h>
   10 +
   11  #ifdef HAVE_CONFIG_H
   12  #include "src/webp/config.h"
   13  #endif
   14 @@ -70,12 +72,12 @@ extern "C" {
   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 @@ -122,7 +124,7 @@ extern "C" {
   30  // Note: ARM64 is supported in Visual Studio 2017, but requires the direct
   31  // inclusion of arm64_neon.h; Visual Studio 2019 includes this file in
   32  // arm_neon.h.
   33 -#if defined(_MSC_VER) && \
   34 +#if defined(_MSC_VER) && !defined(__clang__) && (QT_CONFIG_neon == 1) && \
   35    ((_MSC_VER >= 1700 && defined(_M_ARM)) || \
   36     (_MSC_VER >= 1920 && defined(_M_ARM64)))
   37  #define WEBP_USE_NEON