Fix windows compile error where std::max is overriden by a macro (#1251)
This commit is contained in:
parent
274558c430
commit
5381061d97
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user