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:
parent
4ad239acbc
commit
78b94a4fcf
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user