(Xbox) Xbox has WSAGetLastError() after all

This commit is contained in:
twinaphex 2015-01-24 01:22:15 +01:00
parent a268feb1b3
commit f99cb6bb68

View File

@ -75,10 +75,8 @@ static INLINE bool isagain(int bytes)
#if defined(_WIN32)
if (bytes != SOCKET_ERROR)
return false;
#ifndef _XBOX
if (WSAGetLastError() != WSAEWOULDBLOCK)
return false;
#endif
return true;
#else
return (bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK));