Browse Source

Add missing `cstdint` includes for GCC 15

Rémi Verschelde 6 tháng trước cách đây
mục cha
commit
1823460787

+ 1 - 0
thirdparty/glslang/SPIRV/SpvBuilder.h

@@ -56,6 +56,7 @@ namespace spv {
 }
 
 #include <algorithm>
+#include <cstdint>
 #include <map>
 #include <memory>
 #include <set>

+ 12 - 0
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 <algorithm>
++#include <cstdint>
+ #include <map>
+ #include <memory>
+ #include <set>

+ 1 - 0
thirdparty/thorvg/inc/thorvg.h

@@ -1,6 +1,7 @@
 #ifndef _THORVG_H_
 #define _THORVG_H_
 
+#include <cstdint>
 #include <functional>
 #include <memory>
 #include <string>

+ 12 - 0
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 <cstdint>
+ #include <functional>
+ #include <memory>
+ #include <string>