Mercurial > hg > openttd
changeset 5527:6ada59e62c1b draft
(svn r7834) -Codechange: cleanup the includes of network/core a little; include headers in headers when the header needs types/constants defined in them.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 04 Jan 2007 21:21:14 +0000 |
parents | a19ac0090044 |
children | 6a6b9d136842 |
files | src/network/core/game.h src/network/core/packet.c src/network/core/packet.h src/network/core/tcp.c src/network/core/tcp.h src/network/core/udp.c src/network/core/udp.h |
diffstat | 7 files changed, 15 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/core/game.h +++ b/src/network/core/game.h @@ -5,6 +5,10 @@ #ifdef ENABLE_NETWORK +#include "config.h" +#include "../../date.h" +#include "../../newgrf_config.h" + /** * @file game.h Information about a game that is sent between a * game server, game client and masterserver.
--- a/src/network/core/packet.c +++ b/src/network/core/packet.c @@ -6,8 +6,6 @@ #include "../../macros.h" #include "../../string.h" -#include "os_abstraction.h" -#include "config.h" #include "packet.h" /**
--- a/src/network/core/packet.h +++ b/src/network/core/packet.h @@ -5,6 +5,8 @@ #ifdef ENABLE_NETWORK +#include "config.h" + /** * @file packet.h Basic functions to create, fill and read packets. */
--- a/src/network/core/tcp.c +++ b/src/network/core/tcp.c @@ -9,10 +9,8 @@ #include "table/strings.h" #include "../../functions.h" -#include "os_abstraction.h" -#include "config.h" +#include "../network_data.h" #include "packet.h" -#include "../network_data.h" #include "tcp.h" /**
--- a/src/network/core/tcp.h +++ b/src/network/core/tcp.h @@ -5,6 +5,9 @@ #ifdef ENABLE_NETWORK +#include "os_abstraction.h" +#include "packet.h" + /** * @file tcp.h Basic functions to receive and send TCP packets. */
--- a/src/network/core/udp.c +++ b/src/network/core/udp.c @@ -3,14 +3,8 @@ #ifdef ENABLE_NETWORK #include "../../stdafx.h" -#include "../../date.h" #include "../../debug.h" #include "../../macros.h" -#include "../../newgrf_config.h" - -#include "os_abstraction.h" -#include "config.h" -#include "game.h" #include "packet.h" #include "udp.h"