]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Only typedef Ebl once.
authorMark Wielaard <mark@klomp.org>
Sun, 19 Jul 2020 19:51:16 +0000 (21:51 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 23 Jul 2020 20:46:46 +0000 (22:46 +0200)
commit15495182302edbe0142101ec3a09e478901ab994
tree5c9815b156d25a8f5dc1d5700108e28a7866c2ba
parent4a3f7f0e4dc1ad2906d05a1014d74c4728817965
Only typedef Ebl once.

Since commit 287a18452 libasm.h defines an opague Ebl handle.
This is fine, except for (internal) code that also includes libebl.h.
Since C11 having multiple typedefs for the same thing is fine, but we
do build using GNU/C99. This also allows multiple same typedefs, except
for (very) old GCCs.

This only affects internal code, since libebl.h isn't a public header.

For internal code, only add the typedef in libebl.h when libasm.h
hasn't been included. Make sure all code that includes both headers
includes libasm.h first.

Signed-off-by: Mark Wielaard <mark@klomp.org>
14 files changed:
libasm/ChangeLog
libasm/libasmP.h
libebl/ChangeLog
libebl/libebl.h
tests/ChangeLog
tests/asm-tst1.c
tests/asm-tst2.c
tests/asm-tst3.c
tests/asm-tst4.c
tests/asm-tst5.c
tests/asm-tst6.c
tests/asm-tst7.c
tests/asm-tst8.c
tests/asm-tst9.c