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

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