Skip to content

Commit

Permalink
winstore: gai_strerrorA is forbidden so use our version from compat
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
  • Loading branch information
robUx4 authored and jbkempf committed Feb 5, 2016
1 parent 0e1ae34 commit ec9891f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
])
Expand Down
6 changes: 4 additions & 2 deletions include/vlc_network.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit ec9891f

Please sign in to comment.