Move ansidecl.h to common-defs.h
authorGary Benson <gbenson@redhat.com>
Mon, 28 Jul 2014 11:03:31 +0000 (12:03 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 7 Aug 2014 08:06:40 +0000 (09:06 +0100)
This commit moves the inclusion of ansidecl.h to common-defs.h and
removes all other inclusions.

gdb/
2014-08-07  Gary Benson  <gbenson@redhat.com>

* common/common-defs.h: Include ansidecl.h.
* defs.h: Do not include ansidecl.h.
* common/buffer.h: Likewise.
* common/common-utils.h: Likewise.

gdb/gdbserver/
2014-08-07  Gary Benson  <gbenson@redhat.com>

* server.h: Do not include ansidecl.h.

gdb/ChangeLog
gdb/common/buffer.h
gdb/common/common-defs.h
gdb/common/common-utils.h
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.h

index 1cd070c3e3d69bbda950120bbe450f40de89261b..422a5d8ce59a47f5956f6f681af10946c34774e5 100644 (file)
@@ -1,3 +1,10 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * common/common-defs.h: Include ansidecl.h.
+       * defs.h: Do not include ansidecl.h.
+       * common/buffer.h: Likewise.
+       * common/common-utils.h: Likewise.
+
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
        * common/common-defs.h: Include stddef.h.
index d051bfbedc521a96a72d3965a2e42e13c1e55a52..98da0d21fc08ef705fc6bb8f3a79d15552977e18 100644 (file)
@@ -21,7 +21,6 @@
 #define BUFFER_H
 
 #include <string.h>
-#include "ansidecl.h"
 
 struct buffer
 {
index f1fd3637fa279705b9b73a74437c0409edd213b1..8106e68ed1a548ed33df5bf9d58193eed4578982 100644 (file)
@@ -31,5 +31,6 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include "ansidecl.h"
 
 #endif /* COMMON_DEFS_H */
index 4dc432970b588f735ce9ad9a4f304346cf6c14e1..9038bc2f8ed5831abbeadf09f324fbedeb758cba 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef COMMON_UTILS_H
 #define COMMON_UTILS_H
 
-#include "ansidecl.h"
-
 /* If possible, define FUNCTION_NAME, a macro containing the name of
    the function being defined.  Since this macro may not always be
    defined, all uses must be protected by appropriate macro definition
index 58098a9c883e66bd2b5de09f05f32815dc40e3b6..b7b6de90ff8cedf9b61bb294cfaff599f848638e 100644 (file)
 
 #include <fcntl.h>
 
-/* First include ansidecl.h so we can use the various macro definitions
-   here and in all subsequent file inclusions.  */
-
-#include "ansidecl.h"
-
 #include "gdb_locale.h"
 
 #include "gdb_wchar.h"
index 90d40ed761034d442df09f8b9008a4e2260db9f3..9d0c7b36627383a24b8ca7a865d5dbbe23b3004e 100644 (file)
@@ -1,3 +1,7 @@
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * server.h: Do not include ansidecl.h.
+
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
        * linux-x86-low.c: Do not include stddef.h.
index 9d7fd99fa06f1a452d4276f5f529c6d926f0b749..061cdcdb29ca26760aa7f74ea0cbd29dcf4d15c6 100644 (file)
@@ -26,7 +26,6 @@
 #endif
 
 #include "libiberty.h"
-#include "ansidecl.h"
 #include "version.h"
 
 #ifdef HAVE_ERRNO_H