From d6338db81726ef21fc3cd90e3e232849e16e5308 Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Sat, 17 Oct 2020 21:57:53 +0300 Subject: [PATCH] Prevent usage of min() macro when compiled with VS --- tests/ELFIOTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ELFIOTest.cpp b/tests/ELFIOTest.cpp index 68ea71f..b47ce94 100644 --- a/tests/ELFIOTest.cpp +++ b/tests/ELFIOTest.cpp @@ -22,6 +22,9 @@ THE SOFTWARE. #ifdef _MSC_VER #define _SCL_SECURE_NO_WARNINGS + +// Prevent usage of min() macro when compiled with VS +#define NOMINMAX #endif #define BOOST_TEST_MODULE ELFIO_Test