From aeb5d15871cca7fe5eba806431b4e63fee015a94 Mon Sep 17 00:00:00 2001 From: TingPing Date: Mon, 15 Dec 2014 22:57:27 -0500 Subject: More consistently include config.h --- src/common/dbus/dbus-client.c | 2 ++ src/common/dcc.c | 2 -- src/common/hexchat.h | 1 + src/common/inbound.c | 2 -- src/common/inet.h | 2 +- src/common/network.c | 3 ++- src/common/plugin-timer.c | 2 ++ src/common/ssl.c | 2 +- src/common/util.c | 2 +- 9 files changed, 10 insertions(+), 8 deletions(-) (limited to 'src/common') diff --git a/src/common/dbus/dbus-client.c b/src/common/dbus/dbus-client.c index e507883d..dd2d5ebe 100644 --- a/src/common/dbus/dbus-client.c +++ b/src/common/dbus/dbus-client.c @@ -19,6 +19,8 @@ * xclaesse@gmail.com */ +#include "config.h" + #define GLIB_DISABLE_DEPRECATION_WARNINGS #include #include "dbus-client.h" diff --git a/src/common/dcc.c b/src/common/dcc.c index a918aaca..2f246249 100644 --- a/src/common/dcc.c +++ b/src/common/dcc.c @@ -46,8 +46,6 @@ #include #endif -#include - #include "hexchat.h" #include "util.h" #include "fe.h" diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 27df0b6f..ef05b4f4 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -22,6 +22,7 @@ #include #include #include +#include #include /* need time_t */ diff --git a/src/common/inbound.c b/src/common/inbound.c index f7232ce4..dbb29b57 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -33,8 +33,6 @@ #define WANTDNS #include "inet.h" -#include - #include "hexchat.h" #include "util.h" #include "ignore.h" diff --git a/src/common/inet.h b/src/common/inet.h index 990415be..aa57d0e4 100644 --- a/src/common/inet.h +++ b/src/common/inet.h @@ -47,7 +47,7 @@ #else -#include "../../config.h" +#include "config.h" #ifdef USE_IPV6 #include #include diff --git a/src/common/network.c b/src/common/network.c index 8790f673..d726bd24 100644 --- a/src/common/network.c +++ b/src/common/network.c @@ -18,6 +18,8 @@ /* ipv4 and ipv6 networking functions with a common interface */ +#include "config.h" + #include #include #include @@ -26,7 +28,6 @@ #ifndef WIN32 #include #endif -#include "../../config.h" #define WANTSOCKET #define WANTARPA diff --git a/src/common/plugin-timer.c b/src/common/plugin-timer.c index 511e0dd6..4f2030e3 100644 --- a/src/common/plugin-timer.c +++ b/src/common/plugin-timer.c @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "config.h" + #include #include #include diff --git a/src/common/ssl.c b/src/common/ssl.c index 21b30da3..26fbc1ba 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -29,7 +29,7 @@ #ifdef WIN32 #include /* RAND_seed() */ #endif -#include "../../config.h" +#include "config.h" #include /* asctime() */ #include /* strncpy() */ #include "ssl.h" /* struct cert_info */ diff --git a/src/common/util.c b/src/common/util.c index ffaa61a2..7eb6746f 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -40,7 +40,7 @@ #include #endif -#include "../../config.h" +#include "config.h" #include #include #include "hexchat.h" -- cgit 1.4.1