public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: endian: move bfd.h from header to source
@ 2022-12-23  3:37 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-12-23  3:37 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b15fa15bc40d561ed937ade95b5340f4b2de9795

commit b15fa15bc40d561ed937ade95b5340f4b2de9795
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Dec 22 22:06:52 2022 -0500

    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:
---
 sim/common/sim-endian.c | 2 ++
 sim/common/sim-endian.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-23  3:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  3:37 [binutils-gdb] sim: endian: move bfd.h from header to source Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).