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