fix: conditional cstdio include in vk_mem_alloc (#8265)
Based on 05973d8aeb/include/vk_mem_alloc.h (L2842)
Co-authored-by: Powei Feng <powei@google.com>
This commit is contained in:
@@ -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
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user