[Zlib-devel] gzio.c & c99: no fdopen

Martin Schröder martin at oneiros.de
Fri May 25 15:31:26 EDT 2007


Hi,
compiling 1.2.3 with gcc -std=c99 gives this warning:
gzio.c: In function 'gz_open':
gzio.c:181: warning: implicit declaration of function 'fdopen'

This is because fdopen is a POSIX thing, which c99 doesn't have. Now,
I've read http://www.gzip.org/zlib/zlib_faq.html#faq35, but maybe you
want zlib to become c99-compliant (this is the only warning with c99).

Best
   Martin




More information about the Zlib-devel mailing list