[vlc-devel] [PATCH 19/22] network: call the proper API when compiling Win32 with UNICODE
Steve Lhomme
robux4 at gmail.com
Fri Jul 31 16:55:03 CEST 2015
---
include/vlc_network.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 4da4faf..cef44da 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -221,7 +221,12 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const char *psz_fmt,
#ifdef _WIN32
# undef gai_strerror
-# define gai_strerror gai_strerrorA
+# ifdef UNICODE
+# include <vlc_charset.h>
+# define gai_strerror(a) FromWide(gai_strerrorW)
+# else
+# define gai_strerror gai_strerrorA
+# endif
#endif
#ifdef __OS2__
--
2.4.2
More information about the vlc-devel
mailing list