mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
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:
parent
114f7e5fff
commit
a4dd2e20e2
8 changed files with 35 additions and 26 deletions
|
@ -2805,7 +2805,7 @@ PyDoc_STRVAR(shutdown_doc,
|
|||
Shut down the reading side of the socket (flag == SHUT_RD), the writing side\n\
|
||||
of the socket (flag == SHUT_WR), or both ends (flag == SHUT_RDWR).");
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
#if defined(MS_WINDOWS) && defined(SIO_RCVALL)
|
||||
static PyObject*
|
||||
sock_ioctl(PySocketSockObject *s, PyObject *arg)
|
||||
{
|
||||
|
@ -2858,7 +2858,7 @@ static PyMethodDef sock_methods[] = {
|
|||
METH_NOARGS, getsockname_doc},
|
||||
{"getsockopt", (PyCFunction)sock_getsockopt, METH_VARARGS,
|
||||
getsockopt_doc},
|
||||
#ifdef MS_WINDOWS
|
||||
#if defined(MS_WINDOWS) && defined(SIO_RCVALL)
|
||||
{"ioctl", (PyCFunction)sock_ioctl, METH_VARARGS,
|
||||
sock_ioctl_doc},
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue