"Fossies" - the Fresh Open Source Software Archive

Member "qt-everywhere-src-6.3.1/qtshadertools/src/3rdparty/patches/0001-SPIRV-Cross-Fix-buid-on-INTEGRITY.patch" (6 Jun 2022, 1227 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 From 3e8d26383b28dcfaa3119296e79b51362f9350ac Mon Sep 17 00:00:00 2001
    2 From: Laszlo Agocs <laszlo.agocs@qt.io>
    3 Date: Tue, 25 May 2021 12:30:58 +0200
    4 Subject: [PATCH] SPIRV-Cross: Fix buid on INTEGRITY
    5 
    6 Change-Id: I4231af98fa0bcb2d36c908633c14404700f38542
    7 ---
    8  src/3rdparty/SPIRV-Cross/spirv_glsl.cpp | 4 +++-
    9  1 file changed, 3 insertions(+), 1 deletion(-)
   10 
   11 diff --git a/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp b/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp
   12 index 5948896..6b1c8a6 100644
   13 --- a/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp
   14 +++ b/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp
   15 @@ -32,8 +32,10 @@
   16  #include <utility>
   17  
   18  #ifndef _WIN32
   19 +#ifndef __ghs__
   20  #include <langinfo.h>
   21  #endif
   22 +#endif
   23  #include <locale.h>
   24  
   25  using namespace spv;
   26 @@ -176,7 +178,7 @@ void CompilerGLSL::init()
   27     const struct lconv *conv = localeconv();
   28     if (conv && conv->decimal_point)
   29         current_locale_radix_character = *conv->decimal_point;
   30 -#elif defined(__ANDROID__) && __ANDROID_API__ < 26
   31 +#elif defined(__ANDROID__) && __ANDROID_API__ < 26 || defined(__ghs__)
   32     // nl_langinfo is not supported on this platform, fall back to the worse alternative.
   33     const struct lconv *conv = localeconv();
   34     if (conv && conv->decimal_point)
   35 -- 
   36 2.23.0.windows.1
   37