diff --git a/src/sinks/wincolor_sink.cpp b/src/sinks/wincolor_sink.cpp index f91ddd26..d267cf4c 100644 --- a/src/sinks/wincolor_sink.cpp +++ b/src/sinks/wincolor_sink.cpp @@ -125,17 +125,21 @@ void wincolor_sink::write_to_file_(const memory_buf_t &formatted) { template class SPDLOG_API wincolor_stdout_sink; template class SPDLOG_API wincolor_stdout_sink; +template<> wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} +template<> wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} // wincolor_stderr_sink +template<> 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) {}