0002-qv4regexp_p-needs-c-limits-include-instead-of-plain-.patch 1.5 KB

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