From a6ff997ce8307ea4be649d4e8de0c07d21048a30 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sat, 19 May 2012 16:46:16 +0000 Subject: PR 14072 * wrapper.c: Include config.h before system header files. * callback.c: Include config.h before system header files. * cgen-trace.c: Likewise. * cgen-utils.c: Likewise. * gentmap.c: Likewise. * sim-if.c: Include config.h before system header files. * compile.c: Include config.h before system header files. * sim-main.h: Likewise. * gdb-if.c: Include config.h before system header files. * load.c: Likewise. * syscalls.c: Likewise. * trace.c: Likewise. * interp.c: Include config.h before system header files. --- sim/common/ChangeLog | 8 ++++++++ sim/common/callback.c | 1 + sim/common/cgen-trace.c | 1 + sim/common/cgen-utils.c | 1 + sim/common/gentmap.c | 1 + 5 files changed, 12 insertions(+) (limited to 'sim/common') diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index c4b95cf..71af5ac 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +2012-05-18 Nick Clifton + + PR 14072 + * callback.c: Include config.h before system header files. + * cgen-trace.c: Likewise. + * cgen-utils.c: Likewise. + * gentmap.c: Likewise. + 2012-04-02 Mike Frysinger * hw-ports.c (hw_port_decode): Change "Unreconized" to "Unrecognized". diff --git a/sim/common/callback.c b/sim/common/callback.c index 8a2abd0..7779489 100644 --- a/sim/common/callback.c +++ b/sim/common/callback.c @@ -24,6 +24,7 @@ #ifdef HAVE_CONFIG_H #include "cconfig.h" #endif +#include "config.h" #include "ansidecl.h" #include #include diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index ea71ecf..754038d 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -17,6 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" #include #include "dis-asm.h" #include "bfd.h" diff --git a/sim/common/cgen-utils.c b/sim/common/cgen-utils.c index 2c84c5a..daeb181 100644 --- a/sim/common/cgen-utils.c +++ b/sim/common/cgen-utils.c @@ -17,6 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" #include "bfd.h" #include "sim-main.h" #include "dis-asm.h" diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index a4d3713..7efc6d3 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -66,6 +66,7 @@ gen_targ_map_c () printf ("/* Target value mapping utilities needed by the simulator and gdb. */\n"); printf ("/* This file is machine generated by gentmap.c. */\n\n"); + printf ("#include \"config.h\"\n"); printf ("#include \n"); printf ("#include \n"); printf ("#include \"ansidecl.h\"\n"); -- cgit v1.1