diff --git a/include/external/clara.hpp b/include/external/clara.hpp index 668d9e48..3f2d13bf 100644 --- a/include/external/clara.hpp +++ b/include/external/clara.hpp @@ -1103,7 +1103,7 @@ namespace detail { size_t consoleWidth = CATCH_CLARA_CONFIG_CONSOLE_WIDTH; size_t optWidth = 0; for( auto const &cols : rows ) - optWidth = std::max(optWidth, cols.left.size() + 2); + optWidth = (std::max)(optWidth, cols.left.size() + 2); for( auto const &cols : rows ) { auto row = diff --git a/third_party/clara.hpp b/third_party/clara.hpp index 5778c562..83c4c514 100644 --- a/third_party/clara.hpp +++ b/third_party/clara.hpp @@ -1103,7 +1103,7 @@ namespace detail { size_t consoleWidth = CLARA_CONFIG_CONSOLE_WIDTH; size_t optWidth = 0; for( auto const &cols : rows ) - optWidth = std::max(optWidth, cols.left.size() + 2); + optWidth = (std::max)(optWidth, cols.left.size() + 2); for( auto const &cols : rows ) { auto row =