libUPnP  1.14.19
inet_pton.h
1 #ifndef INET_PTON
2 #define INET_PTON
3 
4 #ifdef _WIN32
5 
6  #ifdef IPV6_
7  #define INET_IPV6
8  #endif
9 
10  #include "unixutil.h"
11 
12  #include <errno.h>
13  #include <stdio.h>
14  #include <string.h>
15 
16  #if (NTDDI_VERSION < NTDDI_VISTA)
17 
36 extern const char *inet_ntop(
37  int af, const void *src, char *dst, socklen_t size);
38 
49 extern int inet_pton(int af, const char *src, void *dst);
50 
51  #endif /* NTDDI_VERSION < NTDDI_VISTA */
52 
53 #endif /* _WIN32 */
54 
55 #endif /* INET_PTON */