From a709e2958626344529afae684676cac8d5390458 Mon Sep 17 00:00:00 2001 From: fawdlstty Date: Fri, 26 Feb 2021 10:18:33 +0800 Subject: [PATCH] fix unique mode compile --- include/spdlog/sinks/daily_file_sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/daily_file_sink.h b/include/spdlog/sinks/daily_file_sink.h index d4f22487..aedaf52f 100644 --- a/include/spdlog/sinks/daily_file_sink.h +++ b/include/spdlog/sinks/daily_file_sink.h @@ -45,7 +45,7 @@ struct daily_filename_format_calculator // Create filename by formatting %Y_%m_%d.log static filename_t calc_filename (const filename_t &filename, const tm &now_tm) { - filename_t fmt_filename = fmt::format("{{:{}}}", filename); + filename_t fmt_filename = fmt::format(SPDLOG_FILENAME_T ("{{:{}}}"), filename); return fmt::format(fmt_filename, now_tm); } };