From f34a99fb905db4742ce3d77ae970a8baba3e7f02 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Sun, 2 Apr 2023 09:25:36 +0200 Subject: [PATCH] fixes for std format --- include/spdlog/common.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 07e0ee59..046895a1 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -123,12 +123,14 @@ namespace spdlog { class formatter; - + +#if !defined(SPDLOG_USE_STD_FORMAT) template -#if FMT_VERSION >= 90101 +# if FMT_VERSION >= 90101 using fmt_runtime_string = fmt::runtime_format_string; -#else +# else using fmt_runtime_string = fmt::basic_runtime; +# endif #endif struct source_loc