opcodes: d10v: simplify header includes
authorMike Frysinger <vapier@gentoo.org>
Sun, 31 Oct 2021 09:11:34 +0000 (05:11 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 3 Nov 2021 02:57:52 +0000 (22:57 -0400)
This file doesn't use anything from bfd (sysdep.h), so drop that
include.  This avoids an implicit dependency on the generated
config.h which can be problematic for build-time tools.

Also swap stdio.h for stddef.h.  This file isn't doing or using
any I/O structures, but it does need NULL.

opcodes/d10v-opc.c

index c68fc6878a266c32bd1f780efeaeda856a1e02d0..f87a0779b8985e54e573d24172fb6701deaf5209 100644 (file)
@@ -19,8 +19,7 @@
    Software Foundation, 51 Franklin Street - Fifth Floor, Boston,
    MA 02110-1301, USA.  */
 
-#include "sysdep.h"
-#include <stdio.h>
+#include <stddef.h>
 #include "opcode/d10v.h"