From b42c03ce91bc0561d3b05d0480558e31424c9715 Mon Sep 17 00:00:00 2001 From: Caball009 <82909616+Caball009@users.noreply.github.com> Date: Tue, 8 Nov 2022 06:32:40 +0100 Subject: [PATCH] Undefining macro [max] from minwindef.h or stdlib.h Macro [max] is included and makes it impossible to use [std::max] unless the macro's undefined again. --- single_include/mio/mio.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/single_include/mio/mio.hpp b/single_include/mio/mio.hpp index c568a46..2b79930 100644 --- a/single_include/mio/mio.hpp +++ b/single_include/mio/mio.hpp @@ -1758,3 +1758,5 @@ using shared_ummap_sink = basic_shared_mmap_sink; } // namespace mio #endif // MIO_SHARED_MMAP_HEADER + +#undef max