Skip to content

Commit

Permalink
Update test_daily_logger.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Nov 17, 2021
1 parent 8bd5f4f commit ca1eaed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_daily_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ TEST_CASE("daily_logger with custom calculator", "[daily_logger]")

#ifdef SPDLOG_WCHAR_FILENAMES
spdlog::memory_buf_t buf;
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
# ifdef SPDLOG_USE_STD_FORMAT
spdlog::details::os::wstr_to_utf8buf(w, buf);
auto &filename = buf;
# else
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
auto filename = fmt::to_string(buf);
# endif
#else
Expand Down

0 comments on commit ca1eaed

Please sign in to comment.