summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-05 14:50:07 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-05-05 14:50:07 +0000
commit28eedb41600c4c6617cd38905b3e55c879180754 (patch)
treef3309c45f09acdba5144185b51d91f4a51b0b2f9 /src/common/socket.h
parenta79359182bb925d2f64dc82adccbf4333cdcd01d (diff)
downloadhercules-28eedb41600c4c6617cd38905b3e55c879180754.tar.gz
hercules-28eedb41600c4c6617cd38905b3e55c879180754.tar.bz2
hercules-28eedb41600c4c6617cd38905b3e55c879180754.tar.xz
hercules-28eedb41600c4c6617cd38905b3e55c879180754.zip
* Removed the dependency on winsock.h for definitions, it's all winsock2.h now.
* Minor documentation/re-coding in chat.c. * More work on ticket #41. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10471 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.h')
-rw-r--r--src/common/socket.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/socket.h b/src/common/socket.h
index 64190d6e7..3d860e166 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -4,10 +4,12 @@
#ifndef _SOCKET_H_
#define _SOCKET_H_
+#ifndef _CBASETYPES_H_
+#include "../common/cbasetypes.h"
+#endif
+
#ifdef WIN32
- #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
- #include <winsock.h>
+ #include <winsock2.h>
typedef long in_addr_t;
#else
#include <sys/types.h>
@@ -15,7 +17,6 @@
#include <netinet/in.h>
#endif
-#include "../common/cbasetypes.h"
#include <time.h>