summaryrefslogtreecommitdiff
path: root/tests/asm-tst5.c
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2020-07-19 21:51:16 +0200
committerMark Wielaard <mark@klomp.org>2020-07-23 22:46:46 +0200
commit15495182302edbe0142101ec3a09e478901ab994 (patch)
tree5c9815b156d25a8f5dc1d5700108e28a7866c2ba /tests/asm-tst5.c
parent4a3f7f0e4dc1ad2906d05a1014d74c4728817965 (diff)
downloadelfutils-15495182302edbe0142101ec3a09e478901ab994.tar.gz
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>
Diffstat (limited to 'tests/asm-tst5.c')
-rw-r--r--tests/asm-tst5.c2
1 files changed, 1 insertions, 1 deletions
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 <fcntl.h>
-#include ELFUTILS_HEADER(ebl)
#include ELFUTILS_HEADER(asm)
+#include ELFUTILS_HEADER(ebl)
#include <libelf.h>
#include <stdio.h>
#include <stdlib.h>