Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 84331:dfc020b4b123
If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Tue, 25 Jun 2013 00:37:25 +0200 |
| parents | c1a400501db6 |
| children | 2a59428dbff5 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Jun 25 00:17:37 2013 +0200 +++ b/Modules/socketmodule.c Tue Jun 25 00:37:25 2013 +0200 @@ -2553,7 +2553,7 @@ Py_BEGIN_ALLOW_THREADS timeout = internal_select_ex(s, 0, interval); if (!timeout) { -#if defined(MS_WIN64) || defined(MS_WINDOWS) +#ifdef MS_WINDOWS if (len > INT_MAX) len = INT_MAX; outlen = recv(s->sock_fd, cbuf, (int)len, flags); @@ -3251,7 +3251,7 @@ if (!timeout) { #ifdef __VMS n = sendsegmented(s->sock_fd, buf, len, flags); -#elif defined(MS_WIN64) || defined(MS_WINDOWS) +#elif defined(MS_WINDOWS) if (len > INT_MAX) len = INT_MAX; n = send(s->sock_fd, buf, (int)len, flags); @@ -3308,7 +3308,7 @@ if (!timeout) { #ifdef __VMS n = sendsegmented(s->sock_fd, buf, len, flags); -#elif defined(MS_WIN64) || defined(MS_WINDOWS) +#elif defined(MS_WINDOWS) if (len > INT_MAX) len = INT_MAX; n = send(s->sock_fd, buf, (int)len, flags); @@ -3407,7 +3407,7 @@ Py_BEGIN_ALLOW_THREADS timeout = internal_select_ex(s, 1, interval); if (!timeout) { -#if defined(MS_WIN64) || defined(MS_WINDOWS) +#ifdef MS_WINDOWS if (len > INT_MAX) len = INT_MAX; n = sendto(s->sock_fd, buf, (int)len, flags,
