Blame SOURCES/0006-Include-limits-in-Yarr.h-to-fix-build-with-GCC-11.patch

03bb49
From 3c42d4d3dce95b67d65541c5612384eab0c3e27b Mon Sep 17 00:00:00 2001
03bb49
From: Dmitry Shachnev <mitya57@gmail.com>
03bb49
Date: Wed, 18 Aug 2021 22:50:29 +0300
03bb49
Subject: [PATCH 06/20] Include <limits> in Yarr.h to fix build with GCC 11
03bb49
MIME-Version: 1.0
03bb49
Content-Type: text/plain; charset=UTF-8
03bb49
Content-Transfer-Encoding: 8bit
03bb49
03bb49
- <limits.h> (aka <climits>) is needed for UINT_MAX macro constant.
03bb49
- <limits> is needed for std::numeric_limits.
03bb49
03bb49
Without this fix, qtdeclarative failed to build on some platforms:
03bb49
03bb49
 In file included from jsruntime/qv4regexp_p.h:62,
03bb49
                  from jsruntime/qv4regexp.cpp:40:
03bb49
 ../3rdparty/masm/yarr/Yarr.h:46:44: error: ‘numeric_limits’ is not a member of ‘std’
03bb49
    46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max();
03bb49
       |                                            ^~~~~~~~~~~~~~
03bb49
03bb49
Pick-to: 5.15 6.2
03bb49
Change-Id: I7cc9f7bc6624a52c8659f09034ab16064da5fd2f
03bb49
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
03bb49
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
03bb49
(cherry picked from commit db58b8518e157b765bf2e01e6382a9eed4751f27)
03bb49
---
03bb49
 src/3rdparty/masm/yarr/Yarr.h | 1 +
03bb49
 1 file changed, 1 insertion(+)
03bb49
03bb49
diff --git a/src/3rdparty/masm/yarr/Yarr.h b/src/3rdparty/masm/yarr/Yarr.h
03bb49
index ccf78f9880..2955ea7e72 100644
03bb49
--- a/src/3rdparty/masm/yarr/Yarr.h
03bb49
+++ b/src/3rdparty/masm/yarr/Yarr.h
03bb49
@@ -28,6 +28,7 @@
03bb49
 #pragma once
03bb49
 
03bb49
 #include <limits.h>
03bb49
+#include <limits>
03bb49
 #include "YarrErrorCode.h"
03bb49
 
03bb49
 namespace JSC { namespace Yarr {
03bb49
-- 
03bb49
2.35.1
03bb49