Warning, /graphics/krita/3rdparty/ext_qt/0120-qtbase-Fix-build-with-GCC-11.patch is written in an unsupported language. File is not indexed.

0001 From 9c56d4da2ff631a8c1c30475bd792f6c86bda53c Mon Sep 17 00:00:00 2001
0002 From: Thiago Macieira <thiago.macieira@intel.com>
0003 Date: Mon, 18 Jan 2021 07:40:54 -0800
0004 Subject: [PATCH] Fix build with GCC 11: include <limits>
0005 
0006 Fixes: QTBUG-90395
0007 Pick-to: 6.0
0008 Change-Id: Iecc74d2000eb40dfbe7bfffd165b5dd3708b7a40
0009 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
0010 ---
0011  src/corelib/global/qendian.h  | 6 ++++--
0012  src/corelib/global/qfloat16.h | 1 +
0013  2 files changed, 5 insertions(+), 2 deletions(-)
0014 
0015 diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
0016 index 99b529f17cda..c874c5e47abd 100644
0017 --- a/src/corelib/global/qendian.h
0018 +++ b/src/corelib/global/qendian.h
0019 @@ -1,7 +1,7 @@
0020  /****************************************************************************
0021  **
0022 -** Copyright (C) 2016 The Qt Company Ltd.
0023 -** Copyright (C) 2016 Intel Corporation.
0024 +** Copyright (C) 2021 The Qt Company Ltd.
0025 +** Copyright (C) 2021 Intel Corporation.
0026  ** Contact: https://www.qt.io/licensing/
0027  **
0028  ** This file is part of the QtCore module of the Qt Toolkit.
0029 @@ -44,6 +44,8 @@
0030  #include <QtCore/qfloat16.h>
0031  #include <QtCore/qglobal.h>
0032  
0033 +#include <limits>
0034 +
0035  // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
0036  #include <stdlib.h>
0037  #include <string.h>
0038 diff --git a/src/corelib/global/qfloat16.h b/src/corelib/global/qfloat16.h
0039 index 5b369bf3c5..6c52c94466 100644
0040 --- a/src/corelib/global/qfloat16.h
0041 +++ b/src/corelib/global/qfloat16.h
0042 @@ -43,6 +43,7 @@
0043  
0044  #include <QtCore/qglobal.h>
0045  #include <QtCore/qmetatype.h>
0046 +#include <limits>
0047  #include <string.h>
0048  
0049  #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
0050 -- 
0051 2.16.3
0052