This commit is contained in:
manojampalam 2016-03-01 23:18:12 -08:00
parent cddde07e3a
commit b59cb84398

View File

@ -213,8 +213,7 @@ struct w32_io* socketio_socket(int domain, int type, int protocol) {
return pio;
}
#define SET_ERRNO_ON_ERROR(expr) \
do { \
#define SET_ERRNO_ON_ERROR(expr) do { \
int ret = (expr); \
if (ret == SOCKET_ERROR) { \
errno = errno_from_WSALastError(); \