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

This commit is contained in:
Martin Willi 2014-01-02 15:20:14 +01:00
parent 1f3bf4175d
commit 8120b3c339
1 changed files with 4 additions and 0 deletions

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