[Python-checkins] cpython: Fix warning when compiling socketmodule.c with VS2010

kristjan.jonsson python-checkins at python.org
Sat Mar 31 15:35:32 CEST 2012


http://hg.python.org/cpython/rev/e46013f92013
changeset: 76011:e46013f92013
user: Kristján Valur Jónsson <kristjan at ccpgames.com>
date: Sat Mar 31 13:35:00 2012 +0000
summary:
 Fix warning when compiling socketmodule.c with VS2010
VS2010 defineds the old errno constants in addition to the WSA* ones.
files:
 Modules/socketmodule.c | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -390,6 +390,7 @@
 #endif
 
 #ifdef MS_WIN32
+#undef EAFNOSUPPORT
 #define EAFNOSUPPORT WSAEAFNOSUPPORT
 #define snprintf _snprintf
 #endif
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /