windows: Don't redeclare inet_ntop/pton if already defined

This commit is contained in:
Martin Willi
2014-06-04 15:53:05 +02:00
parent 1f3bf4175d
commit 8120b3c339
+4
View File
@@ -115,12 +115,16 @@ char* strndup(const char *s, size_t n);
/**
* Provided via ws2_32
*/
#ifndef InetNtop
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
#endif
/**
* Provided via ws2_32
*/
#ifndef InetPton
int inet_pton(int af, const char *src, void *dst);
#endif
/**
* Provided by printf hook backend