Skip to content

Commit

Permalink
Fixed windows compile
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Dec 6, 2024
1 parent d18a221 commit 4f6f590
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sinks/wincolor_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,21 @@ void wincolor_sink<Mutex>::write_to_file_(const memory_buf_t &formatted) {
template class SPDLOG_API wincolor_stdout_sink<std::mutex>;
template class SPDLOG_API wincolor_stdout_sink<details::null_mutex>;

template<>
wincolor_stdout_sink<std::mutex>::wincolor_stdout_sink(color_mode mode)
: wincolor_sink<std::mutex>(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {}


template<>
wincolor_stdout_sink<details::null_mutex>::wincolor_stdout_sink(color_mode mode)
: wincolor_sink<details::null_mutex>(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {}

// wincolor_stderr_sink
template<>
wincolor_stderr_sink<std::mutex>::wincolor_stderr_sink(color_mode mode)
: wincolor_sink<std::mutex>(::GetStdHandle(STD_ERROR_HANDLE), mode) {}

template<>
wincolor_stderr_sink<details::null_mutex>::wincolor_stderr_sink(color_mode mode)
: wincolor_sink<details::null_mutex>(::GetStdHandle(STD_ERROR_HANDLE), mode) {}

Expand Down

0 comments on commit 4f6f590

Please sign in to comment.