From 3aafddd63bd0dbdaa74f9fc7c4760f12a774e31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 25 Jan 2025 14:55:12 +0100 Subject: [PATCH] Add missing `cstdint` includes for GCC 15 (cherry picked from commit 1823460787a6c1bb8e4eaf21ac2a3f90d24d5ee0) --- thirdparty/glslang/SPIRV/SpvBuilder.h | 1 + thirdparty/glslang/patches/fix-build-gcc15.patch | 12 ++++++++++++ thirdparty/thorvg/inc/thorvg.h | 1 + thirdparty/thorvg/patches/fix-build-gcc15.patch | 12 ++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 thirdparty/glslang/patches/fix-build-gcc15.patch create mode 100644 thirdparty/thorvg/patches/fix-build-gcc15.patch diff --git a/thirdparty/glslang/SPIRV/SpvBuilder.h b/thirdparty/glslang/SPIRV/SpvBuilder.h index a65a98e3377..1499592c4f8 100644 --- a/thirdparty/glslang/SPIRV/SpvBuilder.h +++ b/thirdparty/glslang/SPIRV/SpvBuilder.h @@ -56,6 +56,7 @@ namespace spv { } #include +#include #include #include #include diff --git a/thirdparty/glslang/patches/fix-build-gcc15.patch b/thirdparty/glslang/patches/fix-build-gcc15.patch new file mode 100644 index 00000000000..69ccf8e34c3 --- /dev/null +++ b/thirdparty/glslang/patches/fix-build-gcc15.patch @@ -0,0 +1,12 @@ +diff --git a/thirdparty/glslang/SPIRV/SpvBuilder.h b/thirdparty/glslang/SPIRV/SpvBuilder.h +index a65a98e337..1499592c4f 100644 +--- a/thirdparty/glslang/SPIRV/SpvBuilder.h ++++ b/thirdparty/glslang/SPIRV/SpvBuilder.h +@@ -56,6 +56,7 @@ namespace spv { + } + + #include ++#include + #include + #include + #include diff --git a/thirdparty/thorvg/inc/thorvg.h b/thirdparty/thorvg/inc/thorvg.h index 4303092a5ea..607b7b37825 100644 --- a/thirdparty/thorvg/inc/thorvg.h +++ b/thirdparty/thorvg/inc/thorvg.h @@ -1,6 +1,7 @@ #ifndef _THORVG_H_ #define _THORVG_H_ +#include #include #include #include diff --git a/thirdparty/thorvg/patches/fix-build-gcc15.patch b/thirdparty/thorvg/patches/fix-build-gcc15.patch new file mode 100644 index 00000000000..4071e1dd6e6 --- /dev/null +++ b/thirdparty/thorvg/patches/fix-build-gcc15.patch @@ -0,0 +1,12 @@ +diff --git a/thirdparty/thorvg/inc/thorvg.h b/thirdparty/thorvg/inc/thorvg.h +index 8e3ab4e6ce..f515a03136 100644 +--- a/thirdparty/thorvg/inc/thorvg.h ++++ b/thirdparty/thorvg/inc/thorvg.h +@@ -1,6 +1,7 @@ + #ifndef _THORVG_H_ + #define _THORVG_H_ + ++#include + #include + #include + #include