libgit2/libgit2 — Issue #502: issues compiling zlib (libgit2 v0.15)
Author: antis81
Created: 2011-11-29 21:20:17+00:00
State: open

I'm started to use and develop the libgit2 wrapper for Qt - called libqgit2. Everything works well so far until it comes to zlib. It links fine with the system's library on mac and linux. On windows I'd like to include the zlib sources. But then the compile fails with the following error:

libgit2/deps/zlib/zutil.c:295: error: conflicting types for 'malloc'
libgit2/deps/zlib/zutil.c:296: error: conflicting types for 'calloc'

Any idea how to get it right?