Restore support for Microsoft VC6 compiler.

Some functions in the msvcrt module are skipped,
and socket.ioctl is enabled only when using a more recent Platform SDK.

(and yes, there are still companies that use a 10-years old compiler)
This commit is contained in:
Amaury Forgeot d'Arc 2008-06-13 00:42:22 +00:00
parent 114f7e5fff
commit a4dd2e20e2
8 changed files with 35 additions and 26 deletions

View file

@ -467,13 +467,6 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
/* Define to `int' if <sys/types.h> doesn't define. */
#if _MSC_VER + 0 >= 1300
/* VC.NET typedefs socklen_t in ws2tcpip.h. */
#else
#define socklen_t int
#endif
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1