From 78b94a4fcfb8cca5f074054f63f2daa790878616 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Mon, 3 Feb 2020 12:10:56 +0100 Subject: [PATCH] Problem: testutil.hpp pulls in min/max macro definitions on Windows Solution: define NOMINMAX --- tests/testutil.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/testutil.hpp b/tests/testutil.hpp index 5050a9f4..c60923eb 100644 --- a/tests/testutil.hpp +++ b/tests/testutil.hpp @@ -61,6 +61,10 @@ // duplicated from fd.hpp #ifdef ZMQ_HAVE_WINDOWS +#ifndef NOMINMAX +#define NOMINMAX // Macros min(a,b) and max(a,b) +#endif + #include #include #include