From 8ef5504c2855bd93cba780e281bf52333607e226 Mon Sep 17 00:00:00 2001 From: Ali Alamiri Date: Sun, 24 May 2020 20:11:03 +0100 Subject: [PATCH] Put non wchar defines under correct condition --- include/spdlog/common.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 768f2a36..ebb1a083 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -98,10 +98,13 @@ using win32_find_data = WIN32_FIND_DATAW; #define SPDLOG_FILENAME_T(s) L##s #else using filename_t = std::string; +#define SPDLOG_FILENAME_T(s) s +#endif + +#if defined(_WIN32) && !defined(SPDLOG_WCHAR_FILENAMES) using win32_find_data = WIN32_FIND_DATAA; #define find_first_file FindFirstFileA #define find_next_file FindNextFileA -#define SPDLOG_FILENAME_T(s) s #endif using log_clock = std::chrono::system_clock;