uriparser / uriparser

:hocho: Strictly RFC 3986 compliant URI parsing and handling library written in C89; moved from SourceForge to GitHub

Home Page:https://uriparser.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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