libUPnP  1.14.5
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(int af, const void *src, char *dst,
37  socklen_t size);
38 
48 extern int inet_pton(int af, const char *src, void *dst);
49 
50 #endif /* NTDDI_VERSION < NTDDI_VISTA */
51 
52 #endif /* _WIN32 */
53 
54 #endif /* INET_PTON */