Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

detect when compiling with MINGW32 to avoid typedef redefinition erro…

…r on

C99 size types
  • Loading branch information...
commit 07614b4ed7e9384a7ac88a69e2d086c4f6b939fd 1 parent f5c3cb3
@pijyoi pijyoi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  include/czmq_prelude.h
View
2  include/czmq_prelude.h
@@ -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

@nddrylliog

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

@hintjens
Owner
Please sign in to comment.
Something went wrong with that request. Please try again.