# HG changeset patch # User Thomas Sanchez <> # Date 1269986446 -7200 # Node ID c9ebb8ea24e2ccbcdc6e47475c1d518b8abdddef # Parent 121031d807aab851a88ac2fcf760917d468670a5 Improve portability diff -r 121031d807aa -r c9ebb8ea24e2 include/network/IEndPoint.hpp --- a/include/network/IEndPoint.hpp Tue Mar 30 23:26:14 2010 +0200 +++ b/include/network/IEndPoint.hpp Wed Mar 31 00:00:46 2010 +0200 @@ -3,6 +3,10 @@ # include +# if WIN32 +# include +# endif + namespace zia { namespace api @@ -18,7 +22,11 @@ public: typedef int Ip; typedef unsigned short Port; +# if WIN32 + typedef SOCKET Socket; +# else typedef int Socket; +# endif typedef std::string IAddress; virtual ~IEndPoint(void){}