Fixes "error: templates must have C++ linkage" when compiling with older clang versions. (#9562)

Co-authored-by: Sungun Park <sungunpark@google.com>
This commit is contained in:
Benjamin Schulz
2026-01-05 20:43:54 +01:00
committed by GitHub
parent c0e3aa2b0a
commit 023318c08d

View File

@@ -294,10 +294,6 @@ extern "C" {
#define VMA_STATS_STRING_ENABLED 1
#endif
#if VMA_STATS_STRING_ENABLED
#include <cstdio> // For snprintf
#endif
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
@@ -2582,6 +2578,10 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
#include <bit> // For std::popcount
#endif
#if VMA_STATS_STRING_ENABLED
#include <cstdio> // For snprintf
#endif
/*******************************************************************************
CONFIGURATION SECTION