From: Gary Benson Date: Mon, 28 Jul 2014 11:03:31 +0000 (+0100) Subject: Move ansidecl.h to common-defs.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e443c875f4f3f2dcaf9cc09d2518139fee0e76b;p=binutils-gdb.git Move ansidecl.h to common-defs.h This commit moves the inclusion of ansidecl.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson * 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 * server.h: Do not include ansidecl.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1cd070c3e3d..422a5d8ce59 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2014-08-07 Gary Benson + + * 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 * common/common-defs.h: Include stddef.h. diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h index d051bfbedc5..98da0d21fc0 100644 --- a/gdb/common/buffer.h +++ b/gdb/common/buffer.h @@ -21,7 +21,6 @@ #define BUFFER_H #include -#include "ansidecl.h" struct buffer { diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index f1fd3637fa2..8106e68ed1a 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -31,5 +31,6 @@ #include #include #include +#include "ansidecl.h" #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 4dc432970b5..9038bc2f8ed 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -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 diff --git a/gdb/defs.h b/gdb/defs.h index 58098a9c883..b7b6de90ff8 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -53,11 +53,6 @@ #include -/* 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" diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 90d40ed7610..9d0c7b36627 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2014-08-07 Gary Benson + + * server.h: Do not include ansidecl.h. + 2014-08-07 Gary Benson * linux-x86-low.c: Do not include stddef.h. diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 9d7fd99fa06..061cdcdb29c 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -26,7 +26,6 @@ #endif #include "libiberty.h" -#include "ansidecl.h" #include "version.h" #ifdef HAVE_ERRNO_H