Fixed windows compile

This commit is contained in:
gabime 2024-12-07 01:13:20 +02:00
parent 9fa35a9229
commit 6f2a09bc15
2 changed files with 9 additions and 9 deletions

View File

@ -113,9 +113,9 @@ ansicolor_stderr_sink<Mutex>::ansicolor_stderr_sink(color_mode mode)
// template instantiations
template class SPDLOG_API ansicolor_stdout_sink<std::mutex>;
template class SPDLOG_API ansicolor_stdout_sink<spdlog::details::null_mutex>;
template class SPDLOG_API ansicolor_stdout_sink<details::null_mutex>;
template class SPDLOG_API ansicolor_stderr_sink<std::mutex>;
template class SPDLOG_API ansicolor_stderr_sink<spdlog::details::null_mutex>;
template class SPDLOG_API ansicolor_stderr_sink<details::null_mutex>;
} // namespace sinks
} // namespace spdlog

View File

@ -122,14 +122,14 @@ void wincolor_sink<Mutex>::write_to_file_(const memory_buf_t &formatted) {
}
// template instantiations
template class SPDLOG_API wincolor_sink<std::mutex>;
template class SPDLOG_API wincolor_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) {}
template class SPDLOG_API wincolor_stdout_sink<std::mutex>;
template class SPDLOG_API wincolor_stdout_sink<spdlog::details::null_mutex>;
template class SPDLOG_API wincolor_stderr_sink<std::mutex>;
template class SPDLOG_API wincolor_stderr_sink<spdlog::details::null_mutex>;
// wincolor_stderr_sink
template <typename Mutex>
wincolor_stderr_sink<Mutex>::wincolor_stderr_sink(color_mode mode)
: wincolor_sink<Mutex>(::GetStdHandle(STD_ERROR_HANDLE), mode) {}
} // namespace sinks
} // namespace spdlog