mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
- 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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user