From: Gary Benson Date: Thu, 24 Jul 2014 15:20:50 +0000 (+0100) Subject: Do not include config.h directly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d4848a4bda0cb79d61dcb9987ef6116cf1e6f67;p=binutils-gdb.git Do not include config.h directly All source files under gdb/ that include headers from gdb/ include either defs.h or server.h before any other code with the exception of gdb/gdbserver/gdbreplay.c which seems to be a special case. Both defs.h and server.h include both our and gnulib's config.h files as their first non-comment line, so no other file ever needs to directly include any config.h. This commit removes two such direct config.h includes. gdb/ 2014-07-30 Gary Benson * common/common-utils.h: Do not include config.h. * nat/linux-btrace.h: Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 144a5271d99..c836b35aa9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-07-30 Gary Benson + + * common/common-utils.h: Do not include config.h. + * nat/linux-btrace.h: Likewise. + 2014-07-30 Gary Benson * btrace.c: Include defs.h. diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 063698dac78..f052fed20b9 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -20,7 +20,6 @@ #ifndef COMMON_UTILS_H #define COMMON_UTILS_H -#include "config.h" #include "ansidecl.h" #include #include diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h index 12e9b6067b5..a96d9d1fdb5 100644 --- a/gdb/nat/linux-btrace.h +++ b/gdb/nat/linux-btrace.h @@ -23,7 +23,6 @@ #define LINUX_BTRACE_H #include "btrace-common.h" -#include "config.h" #include "vec.h" #include "ptid.h" #include