mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
00b55370b3
commit
c6944913f0
@@ -24,17 +24,6 @@
|
||||
# define _USE_32BIT_TIME_T
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Prevent including winsock.h. perl.h tries to detect whether winsock.h is
|
||||
* already included before including winsock2.h, because winsock2.h isn't
|
||||
* compatible with winsock.h. However the detection doesn't work with some
|
||||
* versions of MinGW. If WIN32_LEAN_AND_MEAN is defined, windows.h will not
|
||||
* include winsock.h.
|
||||
*/
|
||||
#ifdef WIN32
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#include "vim.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
Reference in New Issue
Block a user