From f67645a7e994f69c3871e8392ba6f4690b4f1753 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 01:34:15 +0200 Subject: [PATCH] Fixed windows compile --- src/sinks/wincolor_sink.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/sinks/wincolor_sink.cpp b/src/sinks/wincolor_sink.cpp index d267cf4c..663c58ce 100644 --- a/src/sinks/wincolor_sink.cpp +++ b/src/sinks/wincolor_sink.cpp @@ -125,21 +125,23 @@ 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<> + +// 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<> +template<> class SPDLOG_API wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} // wincolor_stderr_sink -template<> +template<> class SPDLOG_API wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} -template<> +template<> class SPDLOG_API wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {}