- bugfix for new miniupnpc on windows XP (the authors added code making it require Vista and higher, no thanks)

- added fribidi support to vc++ build (requires new windows dependencies download)
This commit is contained in:
Mark Vejvoda
2012-12-28 21:20:52 +00:00
parent 2d79eb2c0e
commit a6d985a488
2 changed files with 6 additions and 6 deletions

View File

@@ -739,7 +739,7 @@ GetUPNPUrls(struct UPNPUrls * urls, struct IGDdatas * data,
{
char * p;
int n1, n2, n3, n4;
#ifdef IF_NAMESIZE
#if defined(IF_NAMESIZE) && !defined(_WIN32)
char ifname[IF_NAMESIZE];
#else
char scope_str[8];
@@ -749,7 +749,7 @@ GetUPNPUrls(struct UPNPUrls * urls, struct IGDdatas * data,
if(n1==0)
n1 = strlen(descURL);
if(scope_id != 0) {
#ifdef IF_NAMESIZE
#if defined(IF_NAMESIZE) && !defined(_WIN32)
if(if_indextoname(scope_id, ifname)) {
n1 += 3 + strlen(ifname); /* 3 == strlen(%25) */
}
@@ -787,7 +787,7 @@ GetUPNPUrls(struct UPNPUrls * urls, struct IGDdatas * data,
p = strchr(urls->ipcondescURL, ']');
if(p) {
/* insert %25<scope> 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));