mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-01 10:59:02 +08:00
fix common.h
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
|
||||
using filename_t = std::wstring;
|
||||
#define SPDLOG_FILENAME_T(s) L##s
|
||||
SPDLOG_INLINE std::string filename_to_str(const filename_t &filename)
|
||||
inline std::string filename_to_str(const filename_t &filename)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> c;
|
||||
return c.to_bytes(filename);
|
||||
|
Reference in New Issue
Block a user