diff --git a/libcxx/include/span b/libcxx/include/span --- a/libcxx/include/span +++ b/libcxx/include/span @@ -143,7 +143,7 @@ #if _LIBCPP_STD_VER > 17 -inline constexpr size_t dynamic_extent = numeric_limits::max(); +inline constexpr size_t dynamic_extent = (numeric_limits::max)(); template class span; diff --git a/libcxx/test/libcxx/min_max_macros.sh.cpp b/libcxx/test/libcxx/min_max_macros.sh.cpp --- a/libcxx/test/libcxx/min_max_macros.sh.cpp +++ b/libcxx/test/libcxx/min_max_macros.sh.cpp @@ -177,6 +177,8 @@ #include TEST_MACROS(); #endif +#include +TEST_MACROS(); #include TEST_MACROS(); #include