summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-28 20:15:15 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-28 20:15:15 (GMT)
commit6f489d989d947169e70a8668cd265780a0a13d5e (patch)
treeee5f704079aea1d11a38a2b15561f9ac4e000ae3 /Modules
parent919c5762547aec03e63c923a584a91b9b154b6ac (diff)
downloadcpython-6f489d989d947169e70a8668cd265780a0a13d5e.zip
cpython-6f489d989d947169e70a8668cd265780a0a13d5e.tar.gz
cpython-6f489d989d947169e70a8668cd265780a0a13d5e.tar.bz2
Slightly different Windows ifdefs
Diffstat (limited to 'Modules')
-rw-r--r--Modules/selectmodule.c2
-rw-r--r--Modules/socketmodule.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 85a2557..25665c6 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -34,7 +34,7 @@ have any value except INVALID_SOCKET.
#include <sys/types.h>
-#ifdef _MSC_VER
+#ifdef MS_WINDOWS
#include <winsock.h>
#else
#include "myselect.h" /* Also includes mytime.h */
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e76e12c..ffe6b44 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -82,7 +82,7 @@ Socket methods:
#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 @@ BUILD_FUNC_DEF_2(PySocketSock_setblocking,PySocketSockObject*,s,PyObject*,args)
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 @@ static PyObject *
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 @@ BUILD_FUNC_DEF_2(PySocket_socket,PyObject *,self, PyObject *,args)
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)