[Zlib-devel] Building with C++
Mark Adler
madler at madler.net
Sat Mar 17 23:21:56 EDT 2012
On Mar 17, 2012, at 9:33 AM, Jan Seiffert wrote:
> zlib is a C library, written in C89 and even sometimes K&R compatible.
> Casting the return value of malloc is dangerous in C. It hides a
> missing prototype for malloc.
> There should be a C-Compiler on your system able to compile it.
Jan,
I tend to agree. Except that I would expect any compiler to note the missing prototype for malloc, even if the return value is cast.
Mark
More information about the Zlib-devel
mailing list