0003-Include-cstdint-for-uintptr_t.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From c8c602382ff5261501e7b323d04fee90fa40be58 Mon Sep 17 00:00:00 2001
  2. From: Arnout Vandecappelle <arnout@rnout.be>
  3. Date: Sat, 17 May 2025 21:16:32 +0200
  4. Subject: [PATCH] Include <cstdint> for uintptr_t
  5. GCC 15 adheres more strictly to the standard about which type is defined
  6. in which header. As such, uintptr_t is no longer available unless
  7. cstdint is included.
  8. Add #include <cstdint> in the files that use uintptr_t.
  9. Note that in masm, stdint.h is included instead of cstdint, so leave
  10. those alone.
  11. Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
  12. Upstream: https://invent.kde.org/qt/qt/qtdeclarative/-/merge_requests/57
  13. ---
  14. src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp | 2 ++
  15. src/qml/compiler/qv4compiler.cpp | 2 ++
  16. 2 files changed, 4 insertions(+)
  17. diff --git a/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp b/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp
  18. index 1f2709e06c..cc3703de64 100644
  19. --- a/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp
  20. +++ b/src/plugins/scenegraph/openvg/qopenvgoffscreensurface.cpp
  21. @@ -37,6 +37,8 @@
  22. **
  23. ****************************************************************************/
  24. +#include <cstdint>
  25. +
  26. #include <QDebug>
  27. #include "qopenvgoffscreensurface.h"
  28. diff --git a/src/qml/compiler/qv4compiler.cpp b/src/qml/compiler/qv4compiler.cpp
  29. index 18e19cf01c..3a8df1cd47 100644
  30. --- a/src/qml/compiler/qv4compiler.cpp
  31. +++ b/src/qml/compiler/qv4compiler.cpp
  32. @@ -37,6 +37,8 @@
  33. **
  34. ****************************************************************************/
  35. +#include <cstdint>
  36. +
  37. #include <qv4compiler_p.h>
  38. #include <qv4codegen_p.h>
  39. #include <private/qv4compileddata_p.h>
  40. --
  41. 2.49.0