diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-06-02 08:48:09 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-06-02 08:48:09 -0700 |
commit | ea6197bf5fbef07a75309fd9876c798229f7abc2 (patch) | |
tree | 8d2564a57652245f966002fc47337750934e89de /sim/m32c | |
parent | 170960e8e1413c354a76e3fe83c789407c3dc101 (diff) | |
download | gdb-ea6197bf5fbef07a75309fd9876c798229f7abc2.zip gdb-ea6197bf5fbef07a75309fd9876c798229f7abc2.tar.gz gdb-ea6197bf5fbef07a75309fd9876c798229f7abc2.tar.bz2 |
sim m32c: Include defs.h in m32c.opc and r8c.opc.
gnulib can override stdio.h and/or stdlib.h in which case the gnulib
headers require config.h to be included first.
gdb/sim/m32c/ChangeLog:
* m32c.opc: Include defs.h.
* r8c.opc: Likewise.
Diffstat (limited to 'sim/m32c')
-rw-r--r-- | sim/m32c/ChangeLog | 5 | ||||
-rw-r--r-- | sim/m32c/m32c.opc | 2 | ||||
-rw-r--r-- | sim/m32c/r8c.opc | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index eec489f..6795599 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,8 @@ +2021-06-02 John Baldwin <jhb@FreeBSD.org> + + * m32c.opc: Include defs.h. + * r8c.opc: Likewise. + 2021-05-28 Mike Frysinger <vapier@gentoo.org> * gdb-if.c (open): Rename to ... diff --git a/sim/m32c/m32c.opc b/sim/m32c/m32c.opc index d19aaf0..3be5c97 100644 --- a/sim/m32c/m32c.opc +++ b/sim/m32c/m32c.opc @@ -18,6 +18,8 @@ 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 <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" #include <stdio.h> #include <stdlib.h> diff --git a/sim/m32c/r8c.opc b/sim/m32c/r8c.opc index 6645ff8..19a213c 100644 --- a/sim/m32c/r8c.opc +++ b/sim/m32c/r8c.opc @@ -18,6 +18,8 @@ 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 <http://www.gnu.org/licenses/>. */ +/* This must come before any other includes. */ +#include "defs.h" #include <stdio.h> #include <stdlib.h> |