[Zlib-devel] [PATCH] Move gzflags to zutil.c
Mark Adler
madler at madler.net
Thu Feb 2 01:51:03 EST 2012
On Feb 1, 2012, at 9:47 AM, <jbowler at acm.org> <jbowler at acm.org> wrote:
> I did try Z_SOLO; this almost worked, but it causes a non-ANSI compliant declaration of ptrdiff_t to be made in zutil.h.
Did you do ./configure --solo?
What is the non-ANSI compliant declaration you are seeing? On what compiler with what message? According to the C99 standard, ptrdiff_t is defined in stddef.h. So if stddef.h is not #included (and for Z_SOLO, nothing is #included), then you could define ptrdiff_t to be whatever you like.
Mark
More information about the Zlib-devel
mailing list