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 3851c8e commit d18a221
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/sinks/wincolor_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,19 @@ 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 <typename Mutex>
wincolor_stdout_sink<Mutex>::wincolor_stdout_sink(color_mode mode)
: wincolor_sink<Mutex>(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {}
wincolor_stdout_sink<std::mutex>::wincolor_stdout_sink(color_mode mode)
: wincolor_sink<std::mutex>(::GetStdHandle(STD_OUTPUT_HANDLE), mode) {}


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 <typename Mutex>
wincolor_stderr_sink<Mutex>::wincolor_stderr_sink(color_mode mode)
: wincolor_sink<Mutex>(::GetStdHandle(STD_ERROR_HANDLE), mode) {}
wincolor_stderr_sink<std::mutex>::wincolor_stderr_sink(color_mode mode)
: wincolor_sink<std::mutex>(::GetStdHandle(STD_ERROR_HANDLE), mode) {}

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

} // namespace sinks
} // namespace spdlog

0 comments on commit d18a221

Please sign in to comment.