Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

doesn't compile on mingw32 due to redefinition of int32_t #99

Closed
pijyoi opened this Issue · 3 comments

2 participants

@pijyoi
Collaborator

ming32 (gcc 4.6.2) defines WIN32 and friends but provides stdint.h and sys/types.h which are included by process.h

workaround: check for "MINGW32" in czmq_prelude.h before typedef-ing size types.

#if (defined(WINDOWS))
...
#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
...
#endif

@hintjens
Owner

OK, will you make a pull request with that change? Thanks.

@hintjens hintjens closed this
@pijyoi
Collaborator
@hintjens
Owner

OK, if you need any help let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.