diff --git a/tests/test_daily_logger.cpp b/tests/test_daily_logger.cpp index 85150f00..5b27336d 100644 --- a/tests/test_daily_logger.cpp +++ b/tests/test_daily_logger.cpp @@ -3,9 +3,13 @@ */ #include "includes.h" -#ifdef SPDLOG_WCHAR_FILENAMES +#ifdef SPDLOG_USE_STD_FORMAT using filename_memory_buf_t = std::basic_string; +#else +using filename_memory_buf_t = fmt::basic_memory_buffer; +#endif +#ifdef SPDLOG_WCHAR_FILENAMES std::string filename_buf_to_utf8string(const filename_memory_buf_t &w) { spdlog::memory_buf_t buf; @@ -13,8 +17,6 @@ std::string filename_buf_to_utf8string(const filename_memory_buf_t &w) return spdlog::details::fmt_helper::to_string(buf); } #else -using filename_memory_buf_t = fmt::basic_memory_buffer; - std::string filename_buf_to_utf8string(const filename_memory_buf_t &w) { return spdlog::details::fmt_helper::to_string(w);