Browse Source

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*.
pull/162/head
Steve Lhomme 3 years ago
parent
commit
72843f162c
  1. 2
      include/vlc_network.h

2
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

Loading…
Cancel
Save