From: Jean-Baptiste Kempf Date: Tue, 15 Jan 2013 15:59:52 +0000 (+0100) Subject: Win32: we need gai_strerrorA and not gai_strerrorW X-Git-Tag: 2.1.0-git~1580 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f570e4e9ee08139489f4a701a6b8db8f400a32c3;p=vlc Win32: we need gai_strerrorA and not gai_strerrorW --- diff --git a/include/vlc_network.h b/include/vlc_network.h index b5dc66ef2b..699e8af039 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -226,6 +226,11 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *, # define AI_IDN 0 /* GNU/libc extension */ #endif +#ifdef WIN32 +# undef gai_strerror +# define gai_strerror gai_strerrorA +#endif + #ifdef __OS2__ # ifndef NI_NUMERICHOST # define NI_NUMERICHOST 0x01