summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 16:17:30 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 16:17:30 +0000
commit443035526dcdc02af8ae7546f29506c982013880 (patch)
treed82c66c4f184f29ccedf9db65a08551cf55ce9e6 /src/net
parentd0c97b98e477cfdf46ed7f36fd16c64f7943d551 (diff)
downloadmana-client-443035526dcdc02af8ae7546f29506c982013880.tar.gz
mana-client-443035526dcdc02af8ae7546f29506c982013880.tar.bz2
mana-client-443035526dcdc02af8ae7546f29506c982013880.tar.xz
mana-client-443035526dcdc02af8ae7546f29506c982013880.zip
Got stuff to work with Dev-C++
Diffstat (limited to 'src/net')
-rw-r--r--src/net/network.h3
-rw-r--r--src/net/protocol.cpp10
-rw-r--r--src/net/protocol.h10
3 files changed, 11 insertions, 12 deletions
diff --git a/src/net/network.h b/src/net/network.h
index 73b6c9ef..2564c801 100644
--- a/src/net/network.h
+++ b/src/net/network.h
@@ -27,8 +27,7 @@
#ifndef WIN32
#include "win2linux.h"
#else
-#include "allegro.h"
-#include "winalleg.h"
+#include <winsock.h>
#endif
#include <stdio.h>
diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp
index 6a519a0f..bca630b1 100644
--- a/src/net/protocol.cpp
+++ b/src/net/protocol.cpp
@@ -21,7 +21,17 @@
* $Id$
*/
+#include "../main.h"
+#include "../being.h"
#include "protocol.h"
+#include "network.h"
+
+#ifdef WIN32
+#include <windows.h>
+#else
+#include "win2linux.h"
+#endif
+
short packet_lengths[] = {
10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/net/protocol.h b/src/net/protocol.h
index 4cc66356..11eee3a9 100644
--- a/src/net/protocol.h
+++ b/src/net/protocol.h
@@ -24,16 +24,6 @@
#ifndef _TMW_PROTOCOL_H
#define _TMW_PROTOCOL_H
-#include "../main.h"
-#include "../being.h"
-
-#ifdef WIN32
-#include <windows.h>
-#else
-#include "win2linux.h"
-#endif
-
-
/** Packet length by id */
short get_length(short id);