From fde9677a58317e02c98a50fead9c8974c2215579 Mon Sep 17 00:00:00 2001 From: Antoine Hoarau <703240+ahoarau@users.noreply.github.com> Date: Sat, 30 Nov 2024 18:49:35 +0100 Subject: [PATCH] Add missing xchar.h header for fmt > 11.0.2 (v2) In fmt > 11.0.2, basic_format_string has moved from base.h to xchar.h --- include/spdlog/common.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index aca483c20..a2f3da368 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -53,9 +53,7 @@ FMT_VERSION >= 80000 // backward compatibility with fmt versions older than 8 #define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string) #define SPDLOG_FMT_STRING(format_string) FMT_STRING(format_string) - #if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) - #include - #endif + #include #else #define SPDLOG_FMT_RUNTIME(format_string) format_string #define SPDLOG_FMT_STRING(format_string) format_string