comparison src/if_perl.xs @ 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 d330a74451b4
children daaff6843090
comparison
equal deleted inserted replaced
33619:b8b93fef9f60 33620:6733c5359e8a
20 * It means that time_t should be 32-bit. However the default size of 20 * It means that time_t should be 32-bit. However the default size of
21 * time_t is 64-bit since VC8. So we have to define _USE_32BIT_TIME_T. 21 * time_t is 64-bit since VC8. So we have to define _USE_32BIT_TIME_T.
22 */ 22 */
23 #if defined(WIN32) && !defined(_WIN64) 23 #if defined(WIN32) && !defined(_WIN64)
24 # define _USE_32BIT_TIME_T 24 # define _USE_32BIT_TIME_T
25 #endif
26
27 /*
28 * Prevent including winsock.h. perl.h tries to detect whether winsock.h is
29 * already included before including winsock2.h, because winsock2.h isn't
30 * compatible with winsock.h. However the detection doesn't work with some
31 * versions of MinGW. If WIN32_LEAN_AND_MEAN is defined, windows.h will not
32 * include winsock.h.
33 */
34 #ifdef WIN32
35 # define WIN32_LEAN_AND_MEAN
36 #endif 25 #endif
37 26
38 #include "vim.h" 27 #include "vim.h"
39 28
40 #ifdef _MSC_VER 29 #ifdef _MSC_VER