From e379e1be0906aea3b589577d0efb90cbddd55298 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Mon, 27 Mar 2023 18:23:49 +0200 Subject: [PATCH] Update common.h --- include/spdlog/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 5a9e059d..cb551714 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -156,7 +156,8 @@ struct format_string_wrapper : fmt_{fmtstr} , loc_{loc} {} -#if SPDLOG_CPLUSPLUS > 201703L && !defined(SPDLOG_USE_STD_FORMAT) && FMT_VERSION >= 80000 +#if SPDLOG_CPLUSPLUS > 201703L +#if !defined(SPDLOG_USE_STD_FORMAT) && FMT_VERSION >= 80000 format_string_wrapper(fmt::basic_runtime fmtstr, details::source_location loc = details::source_location::current()) : fmt_{fmtstr} , loc_{loc} @@ -166,6 +167,7 @@ struct format_string_wrapper : fmt_{fmtstr} , loc_{loc} {} +#endif #endif T fmt() {