Windows/wchar problems

Mixing char types in libfmt is a problem and WIP.
This commit is contained in:
Wolfgang Petroschka
2021-08-13 13:53:35 +02:00
parent c98b29aa67
commit df45d78d14
3 changed files with 8 additions and 12 deletions

View File

@@ -203,11 +203,7 @@ SPDLOG_INLINE void logger::flush_()
{
sink->flush();
}
#if (defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT) || defined(SPDLOG_WCHAR_FILENAMES)) && defined(_WIN32)
SPDLOG_LOGGER_CATCH(wstring_view_t())
#else
SPDLOG_LOGGER_CATCH(string_view_t())
#endif
SPDLOG_LOGGER_CATCH("")
}
}