0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Problem: testutil.hpp pulls in min/max macro definitions on Windows

Solution: define NOMINMAX
This commit is contained in:
Simon Giesecke 2020-02-03 12:10:56 +01:00
parent 4ad239acbc
commit 78b94a4fcf

View File

@ -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 <winsock2.h>
#include <ws2tcpip.h>
#include <stdexcept>