1 From 29d492b60c84ca784ea0943efc7d2e6e0f3bdaac Mon Sep 17 00:00:00 2001
2 From: Adam Sawicki <adam.sawicki@amd.com>
3 Date: Thu, 19 Jan 2023 13:19:55 +0100
4 Subject: [PATCH] Added missing #include <cstdio>
6 For snprintf, for compatibility with GCC 13.
7 Fixes #312 - thanks @marxin !
9 include/vk_mem_alloc.h | 4 ++++
10 1 file changed, 4 insertions(+)
12 diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h
13 index b787c36..0fe459b 100644
14 --- a/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h
15 +++ b/third_party/vulkanmemoryallocator/include/vk_mem_alloc.h
16 @@ -2614,6 +2614,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
17 #include <bit> // For std::popcount
20 +#if VMA_STATS_STRING_ENABLED
21 + #include <cstdio> // For snprintf
24 /*******************************************************************************