mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-29 12:03:53 +00:00
astyle
This commit is contained in:
parent
0f88996974
commit
0d26359856
@ -110,21 +110,21 @@ private:
|
||||
// wchar support for windows file names (SPDLOG_WCHAR_FILENAMES must be defined)
|
||||
//
|
||||
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
|
||||
#define SPDLOG_FILENAME_T(s) L ## s
|
||||
using filename_t = std::wstring;
|
||||
inline std::string filename_to_str(const filename_t& filename)
|
||||
{
|
||||
#define SPDLOG_FILENAME_T(s) L ## s
|
||||
using filename_t = std::wstring;
|
||||
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);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#define SPDLOG_FILENAME_T(s) s
|
||||
using filename_t = std::string;
|
||||
#define SPDLOG_FILENAME_T(s) s
|
||||
using filename_t = std::string;
|
||||
|
||||
inline std::string filename_to_str(const filename_t& filename)
|
||||
{
|
||||
inline std::string filename_to_str(const filename_t& filename)
|
||||
{
|
||||
return filename;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
} //spdlog
|
||||
|
Loading…
x
Reference in New Issue
Block a user