1From bfd3d907f48aba870be00cd251f0b63d34985be2 Mon Sep 17 00:00:00 2001 2From: Peter Seiderer <ps.report@gmx.net> 3Date: Thu, 22 Jul 2021 23:02:29 +0200 4Subject: [PATCH] qv4regexp_p: needs c++ limits include (instead of plain c 5 limit.h) 6MIME-Version: 1.0 7Content-Type: text/plain; charset=UTF-8 8Content-Transfer-Encoding: 8bit 9 10Fixes gcc-11 compile: 11 12 In file included from jsruntime/qv4regexp_p.h:62, 13 from jsruntime/qv4regexp.cpp:40: 14 ../3rdparty/masm/yarr/Yarr.h:46:44: error: ‘numeric_limits’ is not a member of ‘std’ 15 46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max(); 16 | ^~~~~~~~~~~~~~ 17 ../3rdparty/masm/yarr/Yarr.h:46:59: error: expected primary-expression before ‘unsigned’ 18 46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max(); 19 | ^~~~~~~~ 20 21Signed-off-by: Peter Seiderer <ps.report@gmx.net> 22--- 23 src/qml/jsruntime/qv4regexp_p.h | 2 +- 24 1 file changed, 1 insertion(+), 1 deletion(-) 25 26diff --git a/src/qml/jsruntime/qv4regexp_p.h b/src/qml/jsruntime/qv4regexp_p.h 27index 6afb10ea95..c64f3d3c38 100644 28--- a/src/qml/jsruntime/qv4regexp_p.h 29+++ b/src/qml/jsruntime/qv4regexp_p.h 30@@ -57,7 +57,7 @@ 31 #include <wtf/FastAllocBase.h> 32 #include <wtf/BumpPointerAllocator.h> 33 34-#include <limits.h> 35+#include <limits> 36 37 #include <yarr/Yarr.h> 38 #include <yarr/YarrInterpreter.h> 39-- 402.32.0 41 42