mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 08:46:44 +01: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
|
// duplicated from fd.hpp
|
||||||
#ifdef ZMQ_HAVE_WINDOWS
|
#ifdef ZMQ_HAVE_WINDOWS
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX // Macros min(a,b) and max(a,b)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user