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
21 --- a/lib/graphics_engine/src/ge_spm_buffer.cpp
22 +++ b/lib/graphics_engine/src/ge_spm_buffer.cpp
24 #include "ge_vulkan_features.hpp"
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
35 #include <IImageLoader.h>
41 --- a/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
42 +++ b/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
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
54 #include "ge_main.hpp"
55 #include "ge_vulkan_driver.hpp"
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
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
82 --- a/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
83 +++ b/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
92 --- a/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
93 +++ b/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
99 #include <unordered_map>
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>
108 +#include <stdexcept>
112 --- a/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
113 +++ b/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
118 +#include <stdexcept>