[vlc-commits] winstore: gai_strerrorA is forbidden so use our version from compat
Steve Lhomme
git at videolan.org
Fri Feb 5 18:33:29 CET 2016
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | Mon Feb 1 11:46:45 2016 +0100| [ec9891fc61c37e4d4b26acf7084e92fb1af7723a] | committer: Jean-Baptiste Kempf
winstore: gai_strerrorA is forbidden so use our version from compat
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec9891fc61c37e4d4b26acf7084e92fb1af7723a
---
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..bfb4274 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 !defined(WINAPI_FAMILY) || WINAPI_FAMILY != WINAPI_FAMILY_APP
+# undef gai_strerror
+# define gai_strerror gai_strerrorA
+# endif
#endif
#ifdef __OS2__
More information about the vlc-commits
mailing list