[vlc-devel] [PATCH] winstore: gai_strerrorA is forbidden so use our version from compat
Steve Lhomme
robux4 at gmail.com
Mon Feb 1 11:46:45 CET 2016
--
replaces https://patches.videolan.org/patch/12096/
---
configure.ac | 1 +
include/vlc_network.h | 8 ++++++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index bce546f..0931cdd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -533,6 +533,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..5aaf1a8 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -198,8 +198,12 @@ 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
+#undef gai_strerror
+# if VLC_WINSTORE_APP
+VLC_API const char *gai_strerror( int errnum );
+# else
+# define gai_strerror gai_strerrorA
+# endif
#endif
#ifdef __OS2__
--
2.7.0
More information about the vlc-devel
mailing list