X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Ftypes.h;h=3af68ab8b57e62ff9a26fbf63c029cc26a1fd0f5;hp=3989fa93aa290802bde8e196a6a062565be42bf9;hb=65b029e8334d4dfc9a6161fc04740b03d56a8e2f;hpb=f9cc7ff2e1e5af865220e9fbe16673619ecb78bd diff --git a/source/types.h b/source/types.h index 3989fa9..3af68ab 100644 --- a/source/types.h +++ b/source/types.h @@ -10,9 +10,9 @@ typedef int socklen_t; #define MSP_NET_INVALID_SOCKET_HANDLE static_cast(-1) #else -typedef IO::Handle SocketHandle; +typedef int SocketHandle; -#define MSP_NET_INVALID_SOCKET_HANDLE MSP_IO_INVALID_HANDLE +#define MSP_NET_INVALID_SOCKET_HANDLE -1 #endif } // namespace Net