diff --git a/include/mapnik/function_call.hpp b/include/mapnik/function_call.hpp index 16105f2c7..01f3a81e6 100644 --- a/include/mapnik/function_call.hpp +++ b/include/mapnik/function_call.hpp @@ -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 diff --git a/include/mapnik/text/font_feature_settings.hpp b/include/mapnik/text/font_feature_settings.hpp index cfab87db0..2068d635b 100644 --- a/include/mapnik/text/font_feature_settings.hpp +++ b/include/mapnik/text/font_feature_settings.hpp @@ -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::max(); +static const unsigned int font_feature_range_global_end = (std::numeric_limits::max)(); #pragma GCC diagnostic push #include