backward compatibility with fmt version < 8

This commit is contained in:
gabime
2021-07-10 13:48:06 +03:00
parent b83106bed4
commit 0f83b33d4f
4 changed files with 16 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ struct daily_filename_format_calculator
#if defined(_MSC_VER) && defined(SPDLOG_WCHAR_FILENAMES) // for some reason msvc doesnt allow fmt::runtime(..) with wchar here
return fmt::format(fmt_filename, now_tm);
#else
return fmt::format(fmt::runtime(fmt_filename), now_tm);
return fmt::format(SPDLOG_FMT_RUNTIME(fmt_filename), now_tm);
#endif
}
};