Added missing #include <cstdio> For snprintf, for compatibility with GCC 13. Fixes #312 - thanks @marxin !
diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index b787c36..0fe459b 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h
@@ -2614,6 +2614,10 @@ #include <bit> // For std::popcount #endif +#if VMA_STATS_STRING_ENABLED + #include <cstdio> // For snprintf +#endif + /******************************************************************************* CONFIGURATION SECTION