$ make check-headers CHECK_HEADERS="target.h inf-loop.h"
...
../../binutils-gdb/gdb/inf-loop.h:23:42: error: use of enum 'inferior_event_type' without previous declaration
extern void inferior_event_handler (enum inferior_event_type event_type,
^
gdb:
2017-01-06 Yao Qi <yao.qi@linaro.org>
* inf-loop.c: Don't include "target.h".
* inf-loop.h: Include it here.
+2017-01-06 Yao Qi <yao.qi@linaro.org>
+
+ * inf-loop.c: Don't include "target.h".
+ * inf-loop.h: Include it here.
+
2017-01-06 Yao Qi <yao.qi@linaro.org>
* dfp.h: Include "dboulest.h" and "expression.h".
#include "defs.h"
#include "inferior.h"
#include "infrun.h"
-#include "target.h" /* For enum inferior_event_type. */
#include "event-loop.h"
#include "event-top.h"
#include "inf-loop.h"
#ifndef INF_LOOP_H
#define INF_LOOP_H
+#include "target.h" /* For enum inferior_event_type. */
+
extern void inferior_event_handler (enum inferior_event_type event_type,
void* client_data);