mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-03 03:45:43 +08:00
Fix compilation using MSVC 2008: its <algorithm> defines wrong min/max without NOMINMAX
Visual Studio 2008 compiler defines min/max as macros in its <algorithm> even if <windows.h> is not included at all. This patch defines NOMINMAX to remove these macros and fix compilation on Visual Studio 2008.
This commit is contained in:
parent
396b4e3046
commit
9b58372a38
@ -22,6 +22,12 @@
|
|||||||
#ifndef __ZMQ_ENCODER_HPP_INCLUDED__
|
#ifndef __ZMQ_ENCODER_HPP_INCLUDED__
|
||||||
#define __ZMQ_ENCODER_HPP_INCLUDED__
|
#define __ZMQ_ENCODER_HPP_INCLUDED__
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#ifndef NOMINMAX
|
||||||
|
#define NOMINMAX
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user