Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 3738:ce74bba8a6a6 legacy-trunk
Slightly different Windows ifdefs
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 28 Jun 1996 20:15:15 +0000 |
| parents | 3408756ec601 |
| children | 7ddd8b3f6802 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Fri Jun 28 20:13:08 1996 +0000 +++ b/Modules/socketmodule.c Fri Jun 28 20:15:15 1996 +0000 @@ -82,7 +82,7 @@ #include "mytime.h" #include <signal.h> -#ifndef _MSC_VER +#ifndef MS_WINDOWS #include <netdb.h> #include <sys/socket.h> #include <netinet/in.h> @@ -487,7 +487,7 @@ if (!PyArg_GetInt(args, &block)) return NULL; Py_BEGIN_ALLOW_THREADS -#ifndef _MSC_VER +#ifndef MS_WINDOWS delay_flag = fcntl (s->sock_fd, F_GETFL, 0); if (block) delay_flag &= (~O_NDELAY); @@ -1108,7 +1108,7 @@ BUILD_FUNC_DEF_2(PySocket_socket,PyObject *,self, PyObject *,args) { PySocketSockObject *s; -#ifdef _MSC_VER +#ifdef MS_WINDOWS SOCKET fd; #else int fd; @@ -1119,7 +1119,7 @@ Py_BEGIN_ALLOW_THREADS fd = socket(family, type, proto); Py_END_ALLOW_THREADS -#ifdef _MSC_VER +#ifdef MS_WINDOWS if (fd == INVALID_SOCKET) #else if (fd < 0)
