From 9fa35a922980a1434cfe42e183f9ffa4b7f1d6dc Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 7 Dec 2024 01:05:19 +0200 Subject: [PATCH] Fixed windows compile --- include/spdlog/sinks/ansicolor_sink.h | 1 - include/spdlog/sinks/wincolor_sink.h | 1 - src/sinks/ansicolor_sink.cpp | 1 - src/sinks/wincolor_sink.cpp | 6 ++++++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/spdlog/sinks/ansicolor_sink.h b/include/spdlog/sinks/ansicolor_sink.h index bc1500af..30b19628 100644 --- a/include/spdlog/sinks/ansicolor_sink.h +++ b/include/spdlog/sinks/ansicolor_sink.h @@ -94,7 +94,6 @@ public: using ansicolor_stdout_sink_mt = ansicolor_stdout_sink; using ansicolor_stdout_sink_st = ansicolor_stdout_sink; - using ansicolor_stderr_sink_mt = ansicolor_stderr_sink; using ansicolor_stderr_sink_st = ansicolor_stderr_sink; diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h index ffb34f30..e1416f2c 100644 --- a/include/spdlog/sinks/wincolor_sink.h +++ b/include/spdlog/sinks/wincolor_sink.h @@ -66,7 +66,6 @@ public: using wincolor_stdout_sink_mt = wincolor_stdout_sink; using wincolor_stdout_sink_st = wincolor_stdout_sink; - using wincolor_stderr_sink_mt = wincolor_stderr_sink; using wincolor_stderr_sink_st = wincolor_stderr_sink; diff --git a/src/sinks/ansicolor_sink.cpp b/src/sinks/ansicolor_sink.cpp index 3e1fe3cc..7237571a 100644 --- a/src/sinks/ansicolor_sink.cpp +++ b/src/sinks/ansicolor_sink.cpp @@ -114,7 +114,6 @@ ansicolor_stderr_sink::ansicolor_stderr_sink(color_mode mode) // template instantiations template class SPDLOG_API ansicolor_stdout_sink; template class SPDLOG_API ansicolor_stdout_sink; - template class SPDLOG_API ansicolor_stderr_sink; template class SPDLOG_API ansicolor_stderr_sink; diff --git a/src/sinks/wincolor_sink.cpp b/src/sinks/wincolor_sink.cpp index a255909e..02f43f73 100644 --- a/src/sinks/wincolor_sink.cpp +++ b/src/sinks/wincolor_sink.cpp @@ -125,5 +125,11 @@ void wincolor_sink::write_to_file_(const memory_buf_t &formatted) { template class SPDLOG_API wincolor_sink; template class SPDLOG_API wincolor_sink; +template class SPDLOG_API wincolor_stdout_sink; +template class SPDLOG_API wincolor_stdout_sink; + +template class SPDLOG_API wincolor_stderr_sink; +template class SPDLOG_API wincolor_stderr_sink; + } // namespace sinks } // namespace spdlog