file_helper.cpp and filename_t fix

This commit is contained in:
gabime
2019-04-06 13:45:33 +03:00
parent 96b7214ae2
commit 215b6aea95
3 changed files with 161 additions and 118 deletions

View File

@@ -69,6 +69,15 @@
#define SPDLOG_FUNCTION __FUNCTION__
#endif
namespace spdlog {
class formatter;
namespace sinks {
class sink;
}
#if defined(_WIN32) && defined(SPDLOG_WCHAR_FILENAMES)
using filename_t = std::wstring;
#define SPDLOG_FILENAME_T(s) L##s
@@ -82,14 +91,6 @@ using filename_t = std::string;
#define SPDLOG_FILENAME_T(s) s
#endif
namespace spdlog {
class formatter;
namespace sinks {
class sink;
}
using log_clock = std::chrono::system_clock;
using sink_ptr = std::shared_ptr<sinks::sink>;
using sinks_init_list = std::initializer_list<sink_ptr>;