diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-28 13:13:07 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-02-28 13:13:07 (GMT) |
commit | 57b1d9531c5dc0a0a8c5d8055b2bf09f9e966842 (patch) | |
tree | c1596b2a81451327a24c73124de842f3a471cf16 /win/tclWinSock.c | |
parent | 52e543c5691a60c3ef802fecf1ae08e7efcf19b7 (diff) | |
parent | e7306ac7d85c1452e8d096c1b5f3cf5a2d7b5efb (diff) | |
download | tcl-57b1d9531c5dc0a0a8c5d8055b2bf09f9e966842.zip tcl-57b1d9531c5dc0a0a8c5d8055b2bf09f9e966842.tar.gz tcl-57b1d9531c5dc0a0a8c5d8055b2bf09f9e966842.tar.bz2 |
Implement TIP #562: Deprecate channel types 1-4
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 846f2e1..ad9ed72 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -280,7 +280,11 @@ static Tcl_DriverGetHandleProc TcpGetHandleProc; static const Tcl_ChannelType tcpChannelType = { "tcp", /* Type name. */ TCL_CHANNEL_VERSION_5, /* v5 channel */ +#ifndef TCL_NO_DEPRECATED TcpCloseProc, /* Close proc. */ +#else + TCL_CLOSE2PROC, /* Close proc. */ +#endif TcpInputProc, /* Input proc. */ TcpOutputProc, /* Output proc. */ NULL, /* Seek proc. */ |