From c72591e72ec4355f3c16f74af564ba2cda9a854a Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 1 Dec 2014 10:31:50 +0100 Subject: [PATCH] miniupnpc/miniupnpc.c: fix compilation under WIN32 --- miniupnpc/miniupnpc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/miniupnpc/miniupnpc.c b/miniupnpc/miniupnpc.c index 50627ff..40a35bf 100644 --- a/miniupnpc/miniupnpc.c +++ b/miniupnpc/miniupnpc.c @@ -1,4 +1,4 @@ -/* $Id: miniupnpc.c,v 1.122 2014/11/17 22:59:54 nanard Exp $ */ +/* $Id: miniupnpc.c,v 1.124 2014/12/01 09:25:11 nanard Exp $ */ /* Project : miniupnp * Web : http://miniupnp.free.fr/ * Author : Thomas BERNARD @@ -834,17 +834,17 @@ build_absolute_url(const char * baseurl, const char * descURL, p = strchr(s, ']'); if(p) { /* insert %25 into URL */ -#ifdef IF_NAMESIZE +#if defined(IF_NAMESIZE) && !defined(_WIN32) memmove(p + 3 + strlen(ifname), p, strlen(p) + 1); memcpy(p, "%25", 3); memcpy(p + 3, ifname, strlen(ifname)); n += 3 + strlen(ifname); -#else +#else /* defined(IF_NAMESIZE) && !defined(_WIN32) */ memmove(p + 3 + strlen(scope_str), p, strlen(p) + 1); memcpy(p, "%25", 3); memcpy(p + 3, scope_str, strlen(scope_str)); n += 3 + strlen(scope_str); -#endif +#endif /* defined(IF_NAMESIZE) && !defined(_WIN32) */ } } }