Jonathan Dieter wrote:
For reference, you can find zck.h.in (which gets processed into
zck.h
with the version added) at:
https://github.com/zchunk/zchunk/blob/master/include/zck.h.in
and zck_private.h at:
https://github.com/zchunk/zchunk/blob/master/src/lib/zck_private.h
As far as I can see, gcc-4.7 doesn't like that I'm typedefing the same
struct to the same type twice. Later versions don't see it as a
problem at all.
(Just to be clear, this still happens if I change zck_private.h to say:
typedef struct zckCtx zckCtx;)
IMHO, zck_private.h should #include "zck.h" and only define itself whatever
is not defined in the public header.
Kevin Kofler