diff --git a/third_party/vkmemalloc/include/vk_mem_alloc.h b/third_party/vkmemalloc/include/vk_mem_alloc.h index d56ab151853e..133b8fdb84e3 100644 --- a/third_party/vkmemalloc/include/vk_mem_alloc.h +++ b/third_party/vkmemalloc/include/vk_mem_alloc.h @@ -126,8 +126,6 @@ See documentation chapter: \ref statistics. extern "C" { #endif -#include - #ifndef VULKAN_H_ #include #endif @@ -296,6 +294,10 @@ extern "C" { #define VMA_STATS_STRING_ENABLED 1 #endif +#if VMA_STATS_STRING_ENABLED + #include // For snprintf +#endif + //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// //