From 5f1e61d5591753f5b05014b83cc7debde5d38a15 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Thu, 10 Jan 2019 13:11:26 -0500 Subject: [PATCH] contrib: patch upnp to support store and windows7 Change-Id: I30ca1d3cc90f1ed30beff1934e8eff66820e61ab --- contrib/src/upnp/libupnp-windows.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/src/upnp/libupnp-windows.patch b/contrib/src/upnp/libupnp-windows.patch index b8873be6ab..5484fe98dd 100644 --- a/contrib/src/upnp/libupnp-windows.patch +++ b/contrib/src/upnp/libupnp-windows.patch @@ -666,7 +666,7 @@ memset(&r, 0, sizeof r); /* memory usage stats */ - GlobalMemoryStatus( &r.m ); -+#if (WINAPI_FAMILY_APP != WINAPI_FAMILY_PC_APP) ++#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) + GlobalMemoryStatus(&r.m); +#endif /* random system stats */ @@ -680,7 +680,7 @@ + r.tc = GetTickCount64(); r.l = MAX_COMPUTERNAME_LENGTH + 1; - GetComputerName( r.hostname, &r.l ); -+#if (WINAPI_FAMILY_APP != WINAPI_FAMILY_PC_APP) ++#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) + GetComputerName(r.hostname, &r.l); +#else + GetHostNameW(r.hostname, &r.l); -- GitLab