From af61b7c119103b479b0734122192dfa841a75053 Mon Sep 17 00:00:00 2001 From: nyyakko Date: Mon, 1 Apr 2024 10:55:40 -0300 Subject: [PATCH] fix conflict with minwindef.h on windows --- include/cxxopts.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 1b59fde3..991ba3fc 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -976,11 +976,11 @@ integer_parser(const std::string& text, T& value) US limit = 0; if (negative) { - limit = static_cast(std::abs(static_cast(std::numeric_limits::min()))); + limit = static_cast(std::abs(static_cast((std::numeric_limits::min)()))); } else { - limit = std::numeric_limits::max(); + limit = (std::numeric_limits::max)(); } if (base != 0 && result > limit / base)