summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-04 13:33:00 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-04 13:33:00 (GMT)
commitc36625b05df8cf35946a16c1e47faac4d5b5ea00 (patch)
tree8985757b5009c9efd3811450cb714ea51f596015 /Modules
parent8fd7b0c1a790158a2ab42f70c6c16636f75a4de8 (diff)
downloadcpython-c36625b05df8cf35946a16c1e47faac4d5b5ea00.zip
cpython-c36625b05df8cf35946a16c1e47faac4d5b5ea00.tar.gz
cpython-c36625b05df8cf35946a16c1e47faac4d5b5ea00.tar.bz2
Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for later versions of MSVC. VS6 claims that fortran is a reserved word
Diffstat (limited to 'Modules')
-rw-r--r--Modules/errnomodule.c1
-rw-r--r--Modules/selectmodule.c1
-rw-r--r--Modules/socketmodule.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c
index b1beb00..ab4b5f1 100644
--- a/Modules/errnomodule.c
+++ b/Modules/errnomodule.c
@@ -5,6 +5,7 @@
/* Windows socket errors (WSA*) */
#ifdef MS_WINDOWS
+#define WIN32_LEAN_AND_MEAN
#include <winsock.h>
#endif
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index c4ebecc..168197b 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -44,6 +44,7 @@ extern void bzero(void *, int);
#endif
#ifdef MS_WINDOWS
+# define WIN32_LEAN_AND_MEAN
# include <winsock.h>
#else
# define SOCKET int
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 135b716..1df1ae6 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -22,6 +22,7 @@
# define HAVE_GETNAMEINFO
# define ENABLE_IPV6
#else
+# define WIN32_LEAN_AND_MEAN
# include <winsock.h>
#endif
#endif