diff options
author | Gary Benson <gbenson@redhat.com> | 2014-07-28 13:15:41 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-08-07 09:06:40 +0100 |
commit | 8ebb3f5606b361b30e854335fa5a9ce0fd018d41 (patch) | |
tree | e121174cfc624e660415965f34e3668d4e840a50 /gdb/common | |
parent | 8980bdf628f991be9c13f2d66753af2bbe5f53f5 (diff) | |
download | gdb-8ebb3f5606b361b30e854335fa5a9ce0fd018d41.zip gdb-8ebb3f5606b361b30e854335fa5a9ce0fd018d41.tar.gz gdb-8ebb3f5606b361b30e854335fa5a9ce0fd018d41.tar.bz2 |
Move stddef.h to common-defs.h
This commit moves the inclusion of stddef.h to common-defs.h and
removes all other inclusions.
gdb/
2014-08-07 Gary Benson <gbenson@redhat.com>
* common/common-defs.h: Include stddef.h.
* defs.h: Do not include stddef.h.
* common/common-utils.h: Likewise.
* amd64fbsd-nat.c: Likewise.
* bcache.c: Likewise.
* charset.c: Likewise.
* common/buffer.h: Likewise.
* common/vec.h: Likewise.
* i386bsd-nat.c: Likewise.
* nat/linux-btrace.h: Likewise.
* ppcfbsd-nat.c: Likewise.
* ppcnbsd-tdep.h: Likewise.
* ppcobsd-nat.c: Likewise.
* ppcobsd-tdep.h: Likewise.
* python/py-gdb-readline.c: Likewise.
gdb/gdbserver/
2014-08-07 Gary Benson <gbenson@redhat.com>
* linux-x86-low.c: Do not include stddef.h.
* lynx-ppc-low.c: Likewise.
* tracepoint.c: Likewise.
Diffstat (limited to 'gdb/common')
-rw-r--r-- | gdb/common/buffer.h | 1 | ||||
-rw-r--r-- | gdb/common/common-defs.h | 1 | ||||
-rw-r--r-- | gdb/common/common-utils.h | 1 | ||||
-rw-r--r-- | gdb/common/vec.h | 2 |
4 files changed, 1 insertions, 4 deletions
diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h index c6abc8b..d051bfb 100644 --- a/gdb/common/buffer.h +++ b/gdb/common/buffer.h @@ -20,7 +20,6 @@ #ifndef BUFFER_H #define BUFFER_H -#include <stddef.h> #include <string.h> #include "ansidecl.h" diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index d227b00..f1fd363 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -30,5 +30,6 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> +#include <stddef.h> #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index dff7b53..4dc4329 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -21,7 +21,6 @@ #define COMMON_UTILS_H #include "ansidecl.h" -#include <stddef.h> /* If possible, define FUNCTION_NAME, a macro containing the name of the function being defined. Since this macro may not always be diff --git a/gdb/common/vec.h b/gdb/common/vec.h index 7bae2ff..2a39eff 100644 --- a/gdb/common/vec.h +++ b/gdb/common/vec.h @@ -20,8 +20,6 @@ #if !defined (GDB_VEC_H) #define GDB_VEC_H -#include <stddef.h> - #include <string.h> #include "gdb_assert.h" |