Add missing includes to fix the build with gcc 13

Like other versions before, gcc 13 moved some includes around and as a
result <stdexcept> and <cstdio> are no longer transitively included.
Explicitly include them for std::runtime_error and snprintf.
This commit is contained in:
Heiko Becker 2023-01-26 16:35:54 +01:00
parent 1041736750
commit 0163e3fa88
11 changed files with 12 additions and 0 deletions

View File

@ -2563,6 +2563,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
#undef VMA_IMPLEMENTATION
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <utility>

View File

@ -5,6 +5,7 @@
#include "ge_vulkan_features.hpp"
#include <algorithm>
#include <stdexcept>
#include "mini_glm.hpp"

View File

@ -12,6 +12,7 @@
#include <IImageLoader.h>
#include <cassert>
#include <stdexcept>
namespace GE
{

View File

@ -8,6 +8,7 @@
#include <deque>
#include <memory>
#include <mutex>
#include <stdexcept>
#include <thread>
#include "../source/Irrlicht/os.h"

View File

@ -3,6 +3,8 @@
#include "ge_main.hpp"
#include "ge_vulkan_driver.hpp"
#include <stdexcept>
namespace GE
{
GEVulkanDepthTexture::GEVulkanDepthTexture(GEVulkanDriver* vk,

View File

@ -25,6 +25,7 @@
#include <algorithm>
#include <cmath>
#include <limits>
#include <stdexcept>
#include "../source/Irrlicht/os.h"
#include "quaternion.h"

View File

@ -6,6 +6,7 @@
#include <array>
#include <exception>
#include <stdexcept>
namespace GE
{

View File

@ -10,6 +10,7 @@
#include <algorithm>
#include <cassert>
#include <stdexcept>
#include <vector>
namespace GE

View File

@ -11,6 +11,7 @@
#include <array>
#include <cstdint>
#include <stdexcept>
#include <unordered_map>
namespace GE

View File

@ -21,6 +21,7 @@ extern "C"
#include <IAttributes.h>
#include <IImageLoader.h>
#include <limits>
#include <stdexcept>
namespace GE
{

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <exception>
#include <stdexcept>
namespace GE
{