aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-28 12:03:31 +0100
committerGary Benson <gbenson@redhat.com>2014-08-07 09:06:40 +0100
commit0e443c875f4f3f2dcaf9cc09d2518139fee0e76b (patch)
tree04f473aaebfcfff81c59e082939568acddb26d4d /gdb/common
parent8ebb3f5606b361b30e854335fa5a9ce0fd018d41 (diff)
downloadgdb-0e443c875f4f3f2dcaf9cc09d2518139fee0e76b.zip
gdb-0e443c875f4f3f2dcaf9cc09d2518139fee0e76b.tar.gz
gdb-0e443c875f4f3f2dcaf9cc09d2518139fee0e76b.tar.bz2
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 <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.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/buffer.h1
-rw-r--r--gdb/common/common-defs.h1
-rw-r--r--gdb/common/common-utils.h2
3 files changed, 1 insertions, 3 deletions
diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h
index d051bfb..98da0d2 100644
--- a/gdb/common/buffer.h
+++ b/gdb/common/buffer.h
@@ -21,7 +21,6 @@
#define BUFFER_H
#include <string.h>
-#include "ansidecl.h"
struct buffer
{
diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index f1fd363..8106e68 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -31,5 +31,6 @@
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
+#include "ansidecl.h"
#endif /* COMMON_DEFS_H */
diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h
index 4dc4329..9038bc2 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