From 1d2eb6d23519a971db0646a146152fc6f79350f1 Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 16 Feb 2016 20:28:18 +0100 Subject: Replaced some now unnecessary includes with forward declarations in header files Added some forgotten and "common/conf.h" includes to .c files, that were previously masked by the above. Signed-off-by: Haru --- src/common/showmsg.c | 3 +-- src/common/showmsg.h | 5 +++-- src/common/socket.c | 1 + src/common/socket.h | 3 ++- src/common/sql.c | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/common') diff --git a/src/common/showmsg.c b/src/common/showmsg.c index 9e2ff9898..4d4c72b42 100644 --- a/src/common/showmsg.c +++ b/src/common/showmsg.c @@ -23,11 +23,10 @@ #include "showmsg.h" #include "common/cbasetypes.h" +#include "common/conf.h" #include "common/core.h" //[Ind] - For SERVER_TYPE #include "common/strlib.h" // StringBuf -#include - #include #include #include // atexit diff --git a/src/common/showmsg.h b/src/common/showmsg.h index 85a1527bd..7b48d0df2 100644 --- a/src/common/showmsg.h +++ b/src/common/showmsg.h @@ -23,10 +23,11 @@ #include "common/hercules.h" -#include - #include +/* Forward Declarations */ +struct config_setting_t; + // for help with the console colors look here: // http://www.edoceo.com/liberum/?doc=printf-with-color // some code explanation (used here): diff --git a/src/common/socket.c b/src/common/socket.c index 1fc1b2bff..8b1ab3959 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -25,6 +25,7 @@ #include "common/HPM.h" #include "common/cbasetypes.h" +#include "common/conf.h" #include "common/db.h" #include "common/memmgr.h" #include "common/mmo.h" diff --git a/src/common/socket.h b/src/common/socket.h index 5103c3850..70fbc3492 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -22,7 +22,6 @@ #define COMMON_SOCKET_H #include "common/hercules.h" -#include "common/conf.h" #include "common/db.h" #ifdef WIN32 @@ -34,7 +33,9 @@ # include #endif +/* Forward Declarations */ struct hplugin_data_store; +struct config_setting_t; #define FIFOSIZE_SERVERLINK 256*1024 diff --git a/src/common/sql.c b/src/common/sql.c index f6280c436..b1e77e636 100644 --- a/src/common/sql.c +++ b/src/common/sql.c @@ -32,6 +32,7 @@ # include "common/winapi.h" // Needed before mysql.h #endif #include +#include #include // strtoul void hercules_mysql_error_handler(unsigned int ecode); -- cgit v1.2.3-60-g2f50