Fixed conflict with MAX and MIN macro in Windows.

This commit is contained in:
SNiLD 2020-10-30 11:03:51 +02:00
parent c6fc956a77
commit c510651524
2 changed files with 3 additions and 3 deletions

View file

@ -116,13 +116,13 @@ struct length_impl
// min
inline value_type min_impl(value_type const& arg1, value_type const& arg2)
{
return std::min(arg1.to_double(), arg2.to_double());
return (std::min)(arg1.to_double(), arg2.to_double());
}
// max
inline value_type max_impl(value_type const& arg1, value_type const& arg2)
{
return std::max(arg1.to_double(), arg2.to_double());
return (std::max)(arg1.to_double(), arg2.to_double());
}
// pow

View file

@ -87,7 +87,7 @@ inline bool operator==(font_feature_settings const& lhs, font_feature_settings c
}
constexpr unsigned int font_feature_range_global_start = 0u;
static const unsigned int font_feature_range_global_end = std::numeric_limits<unsigned int>::max();
static const unsigned int font_feature_range_global_end = (std::numeric_limits<unsigned int>::max)();
#pragma GCC diagnostic push
#include <mapnik/warning_ignore.hpp>