]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim m32c: Include defs.h in m32c.opc and r8c.opc.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 2 Jun 2021 15:48:09 +0000 (08:48 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 2 Jun 2021 15:48:09 +0000 (08:48 -0700)
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.

sim/m32c/ChangeLog
sim/m32c/m32c.opc
sim/m32c/r8c.opc

index eec489f29dbdf32ca1769279ef37e91969863436..679559932c2c896ebc7026790987750e07a598a5 100644 (file)
@@ -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 ...
index d19aaf00e1e9b80d59e151729ccee91dbf82ae22..3be5c97f8c5abb2e1ebb1f4a822a8dc868d32f2f 100644 (file)
@@ -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>
index 6645ff8b3067e554412ee9450e4b1f9be8491269..19a213c25862bccb692af1eff05f445c16537351 100644 (file)
@@ -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>