From 72843f162c8cda61f7610ac242f8979909916cf9 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Wed, 18 Oct 2023 11:27:43 +0200 Subject: [PATCH] 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*. --- include/vlc_network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vlc_network.h b/include/vlc_network.h index 845f283275..09160bac74 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -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