From 0abebeb2e2b38249ae02527999d3b599c0bf3e39 Mon Sep 17 00:00:00 2001 From: Caball009 <82909616+Caball009@users.noreply.github.com> Date: Tue, 8 Nov 2022 06:33:30 +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 it's undefined again. --- include/mio/mmap.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mio/mmap.hpp b/include/mio/mmap.hpp index def559a..596ad6b 100644 --- a/include/mio/mmap.hpp +++ b/include/mio/mmap.hpp @@ -490,3 +490,5 @@ mmap_sink make_mmap_sink(const MappingToken& token, std::error_code& error) #include "detail/mmap.ipp" #endif // MIO_MMAP_HEADER + +#undef max