From d18a2216034570c24f5d19680b8a2326f1c39f17 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 01:25:19 +0200 Subject: [PATCH] Fixed windows compile --- src/sinks/wincolor_sink.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/sinks/wincolor_sink.cpp b/src/sinks/wincolor_sink.cpp index 090872ef7..f91ddd26a 100644 --- a/src/sinks/wincolor_sink.cpp +++ b/src/sinks/wincolor_sink.cpp @@ -125,14 +125,19 @@ 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) {} +wincolor_stdout_sink::wincolor_stdout_sink(color_mode mode) + : wincolor_sink(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {} + + +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) {} +wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) + : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} + +wincolor_stderr_sink::wincolor_stderr_sink(color_mode mode) + : wincolor_sink(::GetStdHandle(STD_ERROR_HANDLE), mode) {} } // namespace sinks } // namespace spdlog