Include <limits> in Yarr.h to fix build with GCC 11
- <limits.h> (aka <climits>) is needed for UINT_MAX macro constant. - <limits> is needed for std::numeric_limits. Without this fix, qtdeclarative failed to build on some platforms: In file included from jsruntime/qv4regexp_p.h:62, from jsruntime/qv4regexp.cpp:40: ../3rdparty/masm/yarr/Yarr.h:46:44: error: ‘numeric_limits’ is not a member of ‘std’ 46 | static const unsigned offsetNoMatch = std::numeric_limits<unsigned>::max(); | ^~~~~~~~~~~~~~ Pick-to: 5.15 6.2 Change-Id: I7cc9f7bc6624a52c8659f09034ab16064da5fd2f Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
ea87f276f7
commit
db58b8518e
|
@ -28,6 +28,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <limits.h>
|
||||
#include <limits>
|
||||
#include "YarrErrorCode.h"
|
||||
|
||||
namespace JSC { namespace Yarr {
|
||||
|
|
Loading…
Reference in New Issue