fix unique mode compile

This commit is contained in:
fawdlstty 2021-02-26 10:18:33 +08:00
parent dd46579cb4
commit a709e29586

View File

@ -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);
}
};