From 89fb04a92f080a266c9b509cb522a4b8e8ad92de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 29 Oct 2022 22:31:53 +0200 Subject: New upstream version 0.9.7 --- tool/uriparse.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tool') diff --git a/tool/uriparse.c b/tool/uriparse.c index 027f2d2..edd9e04 100644 --- a/tool/uriparse.c +++ b/tool/uriparse.c @@ -43,9 +43,11 @@ #ifdef _WIN32 # include # include -# ifdef __MINGW32__ +# if defined(__MINGW32__) && \ + (!defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 3 || \ + _WIN32_WINNT < _WIN32_WINNT_VISTA) WINSOCK_API_LINKAGE const char * WSAAPI inet_ntop( - int af, const void *src, char *dst, socklen_t size); + int af, const void *src, char *dst, size_t size); # endif #else # include @@ -57,7 +59,7 @@ WINSOCK_API_LINKAGE const char * WSAAPI inet_ntop( #define RANGE(x) (int)((x).afterLast-(x).first), ((x).first) -void usage() { +void usage(void) { printf("Usage: uriparse URI [..]\n"); } -- cgit v1.2.3