]> git.sesse.net Git - vlc/blobdiff - include/vlc_network.h
win32 replacement for inet_ntop()
[vlc] / include / vlc_network.h
index 988d8d57410d9b10b405434b23b2ad834fe5fc29..826243faac82917bf4b1b9d717368b32bb06ec53 100644 (file)
@@ -150,6 +150,14 @@ VLC_EXPORT( int, __net_vaPrintf, ( vlc_object_t *p_this, int fd, const v_socket_
 VLC_EXPORT (int, inet_pton, (int af, const char *src, void *dst) );
 #endif
 
+#ifndef HAVE_INET_NTOP
+#ifdef WIN32
+/* only in core, so no need for C++ extern "C" */
+VLC_EXPORT (const char *, inet_ntop, (int af, const void *src, 
+                                      char *dst, socklen_t cnt) );
+#endif
+#endif
+
 #ifndef HAVE_POLL
 enum
 {