Current inet_ntop prototype is not working well for Visual Studio 15 2017
hartwork opened this issue · comments
According to #47 (comment) the current prototype
WINSOCK_API_LINKAGE const char WSAAPI inet_ntop(
int af, const void *src, char *dst, socklen_t size);
in tool/uriparse.c
works well for MinGW but not for Visual Studio. Se we need:
- a) a prototype that works with both
- b) some not-MSVC or MinGW-only guard arround it
Quick workaround added in 8bdd07e