From: Mike Frysinger Date: Fri, 23 Dec 2022 03:06:52 +0000 (-0500) Subject: sim: endian: move bfd.h from header to source X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b15fa15bc40d561ed937ade95b5340f4b2de9795;p=binutils-gdb.git sim: endian: move bfd.h from header to source The bfd APIs are used only by sim-n-endian.h which is only included by sim-endian.c, so move the bfd.h include there and out of sim-endian.h which is included by many other modules. --- diff --git a/sim/common/sim-endian.c b/sim/common/sim-endian.c index 647795b37e4..92c66182916 100644 --- a/sim/common/sim-endian.c +++ b/sim/common/sim-endian.c @@ -26,6 +26,8 @@ /* This must come before any other includes. */ #include "defs.h" +#include "bfd.h" + #include "sim-basics.h" #include "sim-assert.h" diff --git a/sim/common/sim-endian.h b/sim/common/sim-endian.h index 9d46db2b18f..b6d97f5c144 100644 --- a/sim/common/sim-endian.h +++ b/sim/common/sim-endian.h @@ -23,8 +23,6 @@ #ifndef SIM_ENDIAN_H #define SIM_ENDIAN_H -#include "bfd.h" - /* C byte conversion functions */ INLINE_SIM_ENDIAN(unsigned_1) endian_h2t_1(unsigned_1 x);