diff --git a/src/sinks/wincolor_sink.cpp b/src/sinks/wincolor_sink.cpp index 663c58ce..a6b0ab3f 100644 --- a/src/sinks/wincolor_sink.cpp +++ b/src/sinks/wincolor_sink.cpp @@ -4,11 +4,10 @@ // clang-format off #include "spdlog/details/windows_include.h" #include + // clang-format on -#include #include "spdlog/sinks/wincolor_sink.h" #include "spdlog/common.h" -#include "spdlog/details/null_mutex.h" namespace spdlog { namespace sinks { @@ -121,29 +120,30 @@ void wincolor_sink::write_to_file_(const memory_buf_t &formatted) { (void)(ignored); } -// template instantiations -template class SPDLOG_API wincolor_stdout_sink; -template class SPDLOG_API wincolor_stdout_sink; - - -// spdlog::sinks::wincolor_stderr_sink::wincolor_stderr_sink(enum spdlog::color_mode)" -template<> class SPDLOG_API -wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) - : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} - - -template<> class SPDLOG_API -wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) - : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} +// wincolor_stdout_sink +template +wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) + : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} // wincolor_stderr_sink -template<> class SPDLOG_API -wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) - : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} +template +wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) + : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} -template<> class SPDLOG_API -wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) - : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} } // namespace sinks } // namespace spdlog + + +#include +#include "spdlog/details/null_mutex.h" + +// template instantiations +template class SPDLOG_API spdlog::sinks::wincolor_sink; +template class SPDLOG_API spdlog::sinks::wincolor_sink; + +template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; +template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink; + +template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink; +template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink;