summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-03 17:55:38 +0000
committerblacksirius <blacksirius@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-03 17:55:38 +0000
commitc2fa09af6a98d13d3eedf777f93b00ee666dc324 (patch)
tree142734eae99fac3b08589872c87bff3d1882d355 /src/common/socket.c
parent2fae6b0ebfb77c78b76dd48e29ece269127c87ae (diff)
downloadhercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.gz
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.bz2
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.tar.xz
hercules-c2fa09af6a98d13d3eedf777f93b00ee666dc324.zip
cleaned up windows header usage (added one central file to use windows / winapi specific stuff, to be able to set the appropriate flags before including it correctly)
Note: this may screw up mingw or cygwin building, ill fix it later... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16219 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 9f781f7b7..f8e957788 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -15,8 +15,7 @@
#include <sys/types.h>
#ifdef WIN32
- #include <winsock2.h>
- #include <io.h>
+ #include "../common/winapi.h"
#else
#include <errno.h>
#include <sys/socket.h>