vlc_network: map gai_strerror to the ANSI version on all Windows UNICODE builds

It doesn't depend on the WINAPI family. VLC expects it to return char*.
This commit is contained in:
Steve Lhomme 2023-10-18 11:27:43 +02:00
parent b48cb18929
commit 72843f162c
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ static inline int vlc_setsockopt(int s, int level, int name,
#endif
#ifdef _WIN32
# if !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_APP
# if defined(UNICODE)
# undef gai_strerror
# define gai_strerror gai_strerrorA
# endif