fix windows compile error in include/spdlog/details/pattern_formatter-inl.h

This commit is contained in:
Benjamin Sergeant 2019-09-29 22:00:57 -07:00
parent 7939f7ad50
commit 0f4def2338

View File

@ -878,7 +878,7 @@ public:
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override
{
auto delta = std::max(msg.time - last_message_time_, log_clock::duration::zero());
auto delta = (std::max)(msg.time - last_message_time_, log_clock::duration::zero());
auto delta_units = std::chrono::duration_cast<DurationUnits>(delta);
last_message_time_ = msg.time;
ScopedPadder p(6, padinfo_, dest);