From c99b727f6dbbc8fdfa70d1ca2a5ca538601805a1 Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Tue, 24 Sep 2013 12:29:29 +0200 Subject: [PATCH] Fixed build for MSVC 2008 --- include/zmq_utils.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/include/zmq_utils.h b/include/zmq_utils.h index 25acbfd0..a40df7e2 100644 --- a/include/zmq_utils.h +++ b/include/zmq_utils.h @@ -22,9 +22,22 @@ #include #include -#include #include +/* Define integer types needed for event interface */ +#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 +#else +# include +#endif + #ifdef __cplusplus extern "C" { #endif