Skip to content

Commit

Permalink
build: resolve missing includes under gcc-13
Browse files Browse the repository at this point in the history
$ make
...
~/gzdoom/libraries/ZVulkan/src/vulkanbuilders.cpp: In member function ‘std::unique_ptr<VulkanShader> ShaderBuilder::Create(const char*, VulkanDevice*)’:
~/gzdoom/libraries/ZVulkan/src/vulkanbuilders.cpp:168:28: error: ‘runtime_error’ is not a member of ‘std’
~/gzdoom/libraries/ZVulkan/include/zvulkan/vk_mem_alloc/vk_mem_alloc.h: In function ‘void VmaUint32ToStr(char*, size_t, uint32_t)’:
~/gzdoom/libraries/ZVulkan/include/zvulkan/vk_mem_alloc/vk_mem_alloc.h:2410:9: error: ‘snprint ’ was not declared in this scope
  • Loading branch information
jengelh authored and madame-rachelle committed Mar 31, 2023
1 parent 9fbac8f commit a6b9dd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libraries/ZVulkan/include/zvulkan/vk_mem_alloc/vk_mem_alloc.h
Expand Up @@ -104,6 +104,8 @@ Documentation of all members: vk_mem_alloc.h
- [Source repository on GitHub](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator)
*/

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
2 changes: 1 addition & 1 deletion libraries/ZVulkan/src/vulkanbuilders.cpp
@@ -1,4 +1,4 @@

#include <stdexcept>
#include "vulkanbuilders.h"
#include "vulkansurface.h"
#include "vulkancompatibledevice.h"
Expand Down
2 changes: 1 addition & 1 deletion libraries/ZVulkan/src/vulkanswapchain.cpp
@@ -1,4 +1,4 @@

#include <stdexcept>
#include "vulkanswapchain.h"
#include "vulkanobjects.h"
#include "vulkansurface.h"
Expand Down

0 comments on commit a6b9dd0

Please sign in to comment.