Permalink
Browse files

detect when compiling with MINGW32 to avoid typedef redefinition erro…

…r on

C99 size types
  • Loading branch information...
1 parent f5c3cb3 commit 07614b4ed7e9384a7ac88a69e2d086c4f6b939fd @pijyoi pijyoi committed Nov 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 include/czmq_prelude.h
View
@@ -398,11 +398,13 @@ typedef unsigned int qbyte; // Quad byte = 32 bits
# define vsnprintf _vsnprintf
typedef unsigned long ulong;
typedef unsigned int uint;
+# if (!defined (__MINGW32__))
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
typedef long ssize_t;
+# endif
#elif (defined (__APPLE__))
typedef unsigned long ulong;
typedef unsigned int uint;

2 comments on commit 07614b4

This change helps a lot! Any idea when a new release is going to include it? (For packaging)

Owner

hintjens replied Dec 12, 2012

Please sign in to comment.