From ca1eaedf7bc14fc0c0b86758d81171314103db7e Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 17 Nov 2021 04:45:49 +0200 Subject: [PATCH] Update test_daily_logger.cpp --- tests/test_daily_logger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_daily_logger.cpp b/tests/test_daily_logger.cpp index 01b75d81..cf93c46e 100644 --- a/tests/test_daily_logger.cpp +++ b/tests/test_daily_logger.cpp @@ -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