From 1b0564c5c3b6f9e9cf785ce43b9c8f9e1ed86b41 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Tue, 28 Apr 2026 18:28:33 -0600 Subject: [PATCH] Don't let MSVC min/max break us --- unittests/catch_amalgamated.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unittests/catch_amalgamated.hpp b/unittests/catch_amalgamated.hpp index ba6cf8ff..c8503078 100644 --- a/unittests/catch_amalgamated.hpp +++ b/unittests/catch_amalgamated.hpp @@ -12,6 +12,13 @@ // This file is an amalgamation of multiple different files. // You probably shouldn't edit it directly. // ---------------------------------------------------------- + +#if defined(min) && defined(max) +#undef min +#undef max +#endif + + #ifndef CATCH_AMALGAMATED_HPP_INCLUDED #define CATCH_AMALGAMATED_HPP_INCLUDED