app-editors/zed: Stabilize 0.165.4 amd64, #948967
[gentoo/gentoo.git] / games-action / supertuxkart / files / supertuxkart-1.4-gcc-13.patch
blobbacd046a4771be82fae065d05d1521446d6ba9c7
1 https://github.com/supertuxkart/stk-code/commit/0163e3fa88b72634c3ddff5304c9086b649f53b1
3 From 0163e3fa88b72634c3ddff5304c9086b649f53b1 Mon Sep 17 00:00:00 2001
4 From: Heiko Becker <heirecka@exherbo.org>
5 Date: Thu, 26 Jan 2023 16:35:54 +0100
6 Subject: [PATCH] Add missing includes to fix the build with gcc 13
8 Like other versions before, gcc 13 moved some includes around and as a
9 result <stdexcept> and <cstdio> are no longer transitively included.
10 Explicitly include them for std::runtime_error and snprintf.
11 --- a/lib/graphics_engine/include/vk_mem_alloc.h
12 +++ b/lib/graphics_engine/include/vk_mem_alloc.h
13 @@ -2563,6 +2563,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
14 #undef VMA_IMPLEMENTATION
16 #include <cstdint>
17 +#include <cstdio>
18 #include <cstdlib>
19 #include <cstring>
20 #include <utility>
21 --- a/lib/graphics_engine/src/ge_spm_buffer.cpp
22 +++ b/lib/graphics_engine/src/ge_spm_buffer.cpp
23 @@ -5,6 +5,7 @@
24 #include "ge_vulkan_features.hpp"
26 #include <algorithm>
27 +#include <stdexcept>
29 #include "mini_glm.hpp"
31 --- a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp
32 +++ b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp
33 @@ -12,6 +12,7 @@
35 #include <IImageLoader.h>
36 #include <cassert>
37 +#include <stdexcept>
39 namespace GE
41 --- a/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
42 +++ b/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
43 @@ -8,6 +8,7 @@
44 #include <deque>
45 #include <memory>
46 #include <mutex>
47 +#include <stdexcept>
48 #include <thread>
50 #include "../source/Irrlicht/os.h"
51 --- a/lib/graphics_engine/src/ge_vulkan_depth_texture.cpp
52 +++ b/lib/graphics_engine/src/ge_vulkan_depth_texture.cpp
53 @@ -3,6 +3,8 @@
54 #include "ge_main.hpp"
55 #include "ge_vulkan_driver.hpp"
57 +#include <stdexcept>
59 namespace GE
61 GEVulkanDepthTexture::GEVulkanDepthTexture(GEVulkanDriver* vk,
62 --- a/lib/graphics_engine/src/ge_vulkan_draw_call.cpp
63 +++ b/lib/graphics_engine/src/ge_vulkan_draw_call.cpp
64 @@ -25,6 +25,7 @@
65 #include <algorithm>
66 #include <cmath>
67 #include <limits>
68 +#include <stdexcept>
70 #include "../source/Irrlicht/os.h"
71 #include "quaternion.h"
72 --- a/lib/graphics_engine/src/ge_vulkan_fbo_texture.cpp
73 +++ b/lib/graphics_engine/src/ge_vulkan_fbo_texture.cpp
74 @@ -6,6 +6,7 @@
76 #include <array>
77 #include <exception>
78 +#include <stdexcept>
80 namespace GE
82 --- a/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
83 +++ b/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
84 @@ -10,6 +10,7 @@
86 #include <algorithm>
87 #include <cassert>
88 +#include <stdexcept>
89 #include <vector>
91 namespace GE
92 --- a/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
93 +++ b/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
94 @@ -11,6 +11,7 @@
96 #include <array>
97 #include <cstdint>
98 +#include <stdexcept>
99 #include <unordered_map>
101 namespace GE
102 --- a/lib/graphics_engine/src/ge_vulkan_texture.cpp
103 +++ b/lib/graphics_engine/src/ge_vulkan_texture.cpp
104 @@ -21,6 +21,7 @@ extern "C"
105 #include <IAttributes.h>
106 #include <IImageLoader.h>
107 #include <limits>
108 +#include <stdexcept>
110 namespace GE
112 --- a/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
113 +++ b/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
114 @@ -6,6 +6,7 @@
116 #include <algorithm>
117 #include <exception>
118 +#include <stdexcept>
120 namespace GE