From 0f684ac16c18ada5553c219423ba977753365e40 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 18 Jan 2016 12:30:05 +0100 Subject: [PATCH] don't include stdint.h on msc < 1600 where stdint.h is unavailable (see stdint.hpp for the same check) --- include/zmq.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/zmq.h b/include/zmq.h index 70e00364..d283df52 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -74,6 +74,16 @@ extern "C" { #define ZMQ_DEFINED_STDINT 1 #if defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OPENVMS # include +#elif defined _MSC_VER && _MSC_VER < 1600 +# ifndef int32_t + typedef __int32 int32_t; +# endif +# ifndef uint16_t + typedef unsigned __int16 uint16_t; +# endif +# ifndef uint8_t + typedef unsigned __int8 uint8_t; +# endif #else # include #endif