fix: conditional cstdio include in vk_mem_alloc (#8265)

Based on https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/blob/05973d8aeb1a4d12f59aadfb86d20decadba82d1/include/vk_mem_alloc.h#L2842

Co-authored-by: Powei Feng <powei@google.com>
This commit is contained in:
Amin Ya
2025-02-27 23:26:31 +00:00
committed by GitHub
co-authored by Powei Feng
parent ad2fdb4663
commit cd4571700a
+4 -2
View File
@@ -126,8 +126,6 @@ See documentation chapter: \ref statistics.
extern "C" {
#endif
#include <stdio.h>
#ifndef VULKAN_H_
#include <vulkan/vulkan.h>
#endif
@@ -296,6 +294,10 @@ extern "C" {
#define VMA_STATS_STRING_ENABLED 1
#endif
#if VMA_STATS_STRING_ENABLED
#include <cstdio> // For snprintf
#endif
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//