From 10676e78e33c9f5dd2e2957ecddcfd6699173ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 7 Jun 2023 11:36:55 +0200 Subject: [PATCH] Add missing stdint.h includes for GCC 13+ Fixes #77927. --- thirdparty/glslang/glslang/Include/Common.h | 1 + .../openxr/patches/fix-gcc13-stdint.patch | 12 ++++++++++ .../openxr/src/common/platform_utils.hpp | 1 + thirdparty/vhacd/0006-fix-gcc13.patch | 23 +++++++++++++++++++ thirdparty/vhacd/inc/vhacdManifoldMesh.h | 7 +++++- 5 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 thirdparty/openxr/patches/fix-gcc13-stdint.patch diff --git a/thirdparty/glslang/glslang/Include/Common.h b/thirdparty/glslang/glslang/Include/Common.h index a5b41cb397a..0a8a986eda3 100644 --- a/thirdparty/glslang/glslang/Include/Common.h +++ b/thirdparty/glslang/glslang/Include/Common.h @@ -45,6 +45,7 @@ #include #endif #include +#include #include #include #include diff --git a/thirdparty/openxr/patches/fix-gcc13-stdint.patch b/thirdparty/openxr/patches/fix-gcc13-stdint.patch new file mode 100644 index 00000000000..9e659eb2102 --- /dev/null +++ b/thirdparty/openxr/patches/fix-gcc13-stdint.patch @@ -0,0 +1,12 @@ +diff --git a/thirdparty/openxr/src/common/platform_utils.hpp b/thirdparty/openxr/src/common/platform_utils.hpp +index 85d5cdab10..2d870cfea7 100644 +--- a/thirdparty/openxr/src/common/platform_utils.hpp ++++ b/thirdparty/openxr/src/common/platform_utils.hpp +@@ -11,6 +11,7 @@ + + #include "xr_dependencies.h" + #include ++#include + #include + + // OpenXR paths and registry key locations diff --git a/thirdparty/openxr/src/common/platform_utils.hpp b/thirdparty/openxr/src/common/platform_utils.hpp index 85d5cdab107..2d870cfea73 100644 --- a/thirdparty/openxr/src/common/platform_utils.hpp +++ b/thirdparty/openxr/src/common/platform_utils.hpp @@ -11,6 +11,7 @@ #include "xr_dependencies.h" #include +#include #include // OpenXR paths and registry key locations diff --git a/thirdparty/vhacd/0006-fix-gcc13.patch b/thirdparty/vhacd/0006-fix-gcc13.patch index 954ac4556dc..b8df42b9362 100644 --- a/thirdparty/vhacd/0006-fix-gcc13.patch +++ b/thirdparty/vhacd/0006-fix-gcc13.patch @@ -13,3 +13,26 @@ index 132bdcfb3e..925584cf52 100644 namespace VHACD { //! Incremental Convex Hull algorithm (cf. http://cs.smith.edu/~orourke/books/ftp.html ). enum ICHullError { +diff --git a/thirdparty/vhacd/inc/vhacdManifoldMesh.h b/thirdparty/vhacd/inc/vhacdManifoldMesh.h +index a48f53c5c5..5eed4e13aa 100644 +--- a/thirdparty/vhacd/inc/vhacdManifoldMesh.h ++++ b/thirdparty/vhacd/inc/vhacdManifoldMesh.h +@@ -18,6 +18,11 @@ All rights reserved. + #include "vhacdCircularList.h" + #include "vhacdSArray.h" + #include "vhacdVector.h" ++ ++// -- GODOT start -- ++#include ++// -- GODOT end -- ++ + namespace VHACD { + class TMMTriangle; + class TMMEdge; +@@ -139,4 +144,4 @@ private: + friend class ICHull; + }; + } +-#endif // VHACD_MANIFOLD_MESH_H +\ No newline at end of file ++#endif // VHACD_MANIFOLD_MESH_H diff --git a/thirdparty/vhacd/inc/vhacdManifoldMesh.h b/thirdparty/vhacd/inc/vhacdManifoldMesh.h index a48f53c5c50..5eed4e13aa3 100644 --- a/thirdparty/vhacd/inc/vhacdManifoldMesh.h +++ b/thirdparty/vhacd/inc/vhacdManifoldMesh.h @@ -18,6 +18,11 @@ All rights reserved. #include "vhacdCircularList.h" #include "vhacdSArray.h" #include "vhacdVector.h" + +// -- GODOT start -- +#include +// -- GODOT end -- + namespace VHACD { class TMMTriangle; class TMMEdge; @@ -139,4 +144,4 @@ private: friend class ICHull; }; } -#endif // VHACD_MANIFOLD_MESH_H \ No newline at end of file +#endif // VHACD_MANIFOLD_MESH_H