Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 43926:2de7d00fbf19
The patch from weck does a better job than my original idea. Thanks!
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Tue, 20 Nov 2007 06:51:17 +0000 |
| parents | 70cfc7b504c2 |
| children | 092b5306983f |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Nov 20 05:57:30 2007 +0000 +++ b/Modules/socketmodule.c Tue Nov 20 06:51:17 2007 +0000 @@ -285,8 +285,7 @@ #endif #ifndef HAVE_INET_PTON -#if !(defined(_MSC_VER) && _MSC_VER>1499) -/* Don't redefine inet_pton in VS2008 */ +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN) int inet_pton(int af, const char *src, void *dst); const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); #endif @@ -4805,8 +4804,7 @@ #ifndef HAVE_INET_PTON -#if !(defined(_MSC_VER) && _MSC_VER>1499) -/* Don't redefine inet_pton in VS2008 */ +#if !defined(NTDDI_VERSION) || (NTDDI_VERSION < NTDDI_LONGHORN) /* Simplistic emulation code for inet_pton that only works for IPv4 */ /* These are not exposed because they do not set errno properly */
