From 15495182302edbe0142101ec3a09e478901ab994 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 19 Jul 2020 21:51:16 +0200 Subject: 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 --- tests/asm-tst5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/asm-tst5.c') diff --git a/tests/asm-tst5.c b/tests/asm-tst5.c index dcb852f8..256873f0 100644 --- a/tests/asm-tst5.c +++ b/tests/asm-tst5.c @@ -20,8 +20,8 @@ #endif #include -#include ELFUTILS_HEADER(ebl) #include ELFUTILS_HEADER(asm) +#include ELFUTILS_HEADER(ebl) #include #include #include -- cgit v1.2.1