In file included from ../src/lib/comp/zstd/zstd.c:34:
../src/lib/zck_private.h:92: error: redefinition of typedef 'zckCtx'
include/zck.h:49: note: previous declaration of 'zckCtx' was here
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.
How about this:
#ifndef zckCtx_DEFINED /*{ workaround for gcc-4.4.7 */
#define zckCtx_DEFINED 1 /* gcc-4.4.7 demands only one declaration of a
typedef */
typedef struct zckCtx zckCtx;
#endif /*}*/
and similarly for the other 8 "multiply-defined" typedefs? After
pre-processing,
then the compiler will see exactly one definition of the typedef.
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]