Mercurial > vim
comparison src/channel.c @ 33620:6733c5359e8a v9.0.2052
patch 9.0.2052: win32: using deprecated wsock32 api
Commit: https://github.com/vim/vim/commit/c6944913f0aa56cdfd9ad7464ab05d2815d9d815
Author: Ken Takata <kentkt@csc.jp>
Date: Thu Oct 19 17:22:24 2023 +0200
patch 9.0.2052: win32: using deprecated wsock32 api
Problem: win32: using deprecated wsock32 api
Solution: Use winsock2 (ws2_32) consistently
win32: Stop using wsock32
We have already used ws2_32 (winsock2) and already dropped support for
Windows 95 and NT4. So, we don't need to care about wsock32.
Use ws2_32 consistently.
closes: #13383
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ken Takata <kentkt@csc.jp>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 19 Oct 2023 17:30:07 +0200 |
parents | b59205d0567e |
children | 9e093c96dff6 |
comparison
equal
deleted
inserted
replaced
33619:b8b93fef9f60 | 33620:6733c5359e8a |
---|---|
7 */ | 7 */ |
8 | 8 |
9 /* | 9 /* |
10 * Implements communication through a socket or any file handle. | 10 * Implements communication through a socket or any file handle. |
11 */ | 11 */ |
12 | |
13 #ifdef WIN32 | |
14 // Must include winsock2.h before windows.h since it conflicts with winsock.h | |
15 // (included in windows.h). | |
16 # include <winsock2.h> | |
17 # include <ws2tcpip.h> | |
18 #endif | |
19 | 12 |
20 #include "vim.h" | 13 #include "vim.h" |
21 | 14 |
22 #if defined(FEAT_JOB_CHANNEL) || defined(PROTO) | 15 #if defined(FEAT_JOB_CHANNEL) || defined(PROTO) |
23 | 16 |