From bddcf16f0f2da10b9d49a9f06892bfad4265449c Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 19 Dec 2022 20:17:08 +0100 Subject: [PATCH] Win: [skip ci] define NOMINMAX before including Windows.h to avoid name collision with std::min/std::max --- src/boost_regex.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/boost_regex.hpp b/src/boost_regex.hpp index ed25454ac3..48d6e5e870 100644 --- a/src/boost_regex.hpp +++ b/src/boost_regex.hpp @@ -7,6 +7,9 @@ // Workaround for boost >= 1.78 #ifdef WIN32 +#ifndef NOMINMAX +#define NOMINMAX +#endif #include #endif