X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftypes.h;h=3af68ab8b57e62ff9a26fbf63c029cc26a1fd0f5;hb=5cf15ce8f6b17a47f662eb8f60de619fd6bf7b53;hp=3989fa93aa290802bde8e196a6a062565be42bf9;hpb=2aab4004e71a2e5c773289e0be5e58aec6a8d339;p=libs%2Fnet.git 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