Commit ec9891fc authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

winstore: gai_strerrorA is forbidden so use our version from compat

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 0e1ae34c
......@@ -524,6 +524,7 @@ AS_IF([test "${SYS}" = "mingw32"],[
AS_IF([test "${enable_winstore_app}" = "yes"], [
vlc_winstore_app=1
VLC_ADD_LIBS([libvlccore], [-lole32 -lruntimeobject])
AC_LIBOBJ([gai_strerror])
],[
VLC_ADD_LIBS([libvlccore],[-lwinmm])
])
......
......@@ -198,8 +198,10 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const char *psz_fmt,
#endif
#ifdef _WIN32
# undef gai_strerror
# define gai_strerror gai_strerrorA
# if !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_APP
# undef gai_strerror
# define gai_strerror gai_strerrorA
# endif
#endif
#ifdef __OS2__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment