From 56adf64ccf5b25ec2b3e644f2c203cf7dd218e30 Mon Sep 17 00:00:00 2001 From: Charles Milette Date: Thu, 21 Apr 2022 22:43:13 -0400 Subject: [PATCH] Actually fix bad #ifdef --- tests/test_daily_logger.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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);