Include doublest.h and expression.h in dfp.h
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:26:45 +0000 (14:26 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:26:45 +0000 (14:26 +0000)
$ make check-headers CHECK_HEADERS="dfp.h"
...
../../binutils-gdb/gdb/dfp.h:39:8: error: 'DOUBLEST' does not name a type
 extern DOUBLEST decimal_to_doublest (const gdb_byte *from, int len,
        ^
../../binutils-gdb/gdb/dfp.h:41:33: error: use of enum 'exp_opcode' without previous declaration
 extern void decimal_binop (enum exp_opcode,
                                 ^
gdb:

2017-01-06  Yao Qi  <yao.qi@linaro.org>

* dfp.h: Include "dboulest.h" and "expression.h".

gdb/ChangeLog
gdb/dfp.h

index 986984d2e5ec96af28ae3845d4042d039b975921..c09965ff1e6418705e852dc194f4c4faff4cbe54 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-06  Yao Qi  <yao.qi@linaro.org>
+
+       * dfp.h: Include "dboulest.h" and "expression.h".
+
 2017-01-06  Yao Qi  <yao.qi@linaro.org>
 
        * ax-gdb.h: Include "ax.h".
index 9f37b8ceabb60344de2862f6a3f61f03fb11b948..c8ff5a1736f6e9b441a12ee0f64d69a5a1f7a220 100644 (file)
--- a/gdb/dfp.h
+++ b/gdb/dfp.h
@@ -25,6 +25,9 @@
 #ifndef DFP_H
 #define DFP_H
 
+#include "doublest.h"    /* For DOUBLEST.  */
+#include "expression.h"  /* For enum exp_opcode.  */
+
 /* When using decimal128, this is the maximum string length + 1
  * (value comes from libdecnumber's DECIMAL128_String constant).  */
 #define MAX_DECIMAL_STRING  43