vlc | branch: master | Steve Lhomme <[email protected]> | Mon Feb 1 11:46:45 2016 +0100| [04ae9b98d881c55112e204421417d5e9a0b14f2a] | committer: Jean-Baptiste Kempf
winstore: gai_strerrorA is forbidden so use our version from compat Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=04ae9b98d881c55112e204421417d5e9a0b14f2a --- configure.ac | 1 + include/vlc_network.h | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e706103..e848d72 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) ]) diff --git a/include/vlc_network.h b/include/vlc_network.h index 28a9fa6..eb5d2d6 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -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 !VLC_WINSTORE_APP +# undef gai_strerror +# define gai_strerror gai_strerrorA +# endif #endif #ifdef __OS2__ _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
