(Xbox) Xbox has WSAGetLastError() after all
This commit is contained in:
parent
a268feb1b3
commit
f99cb6bb68
|
@ -75,10 +75,8 @@ static INLINE bool isagain(int bytes)
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
if (bytes != SOCKET_ERROR)
|
if (bytes != SOCKET_ERROR)
|
||||||
return false;
|
return false;
|
||||||
#ifndef _XBOX
|
|
||||||
if (WSAGetLastError() != WSAEWOULDBLOCK)
|
if (WSAGetLastError() != WSAEWOULDBLOCK)
|
||||||
return false;
|
return false;
|
||||||
#endif
|
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return (bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK));
|
return (bytes < 0 && (errno == EAGAIN || errno == EWOULDBLOCK));
|
||||||
|
|
Loading…
Reference in New Issue