From 60e2722a21114182e04670c7c1227c3be88e4691 Mon Sep 17 00:00:00 2001 From: Mikhail Titov Date: Sat, 20 Jun 2015 00:49:24 -0500 Subject: [PATCH] fixup! Fix UPnP for Win32 --- UPnP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPnP.cpp b/UPnP.cpp index 21f7e76d..6773b514 100644 --- a/UPnP.cpp +++ b/UPnP.cpp @@ -42,8 +42,8 @@ void (*freeUPNPDevlistFunc) (struct UPNPDev *); void (*FreeUPNPUrlsFunc) (struct UPNPUrls *); // Nice approach http://stackoverflow.com/a/21517513/673826 -template -F GetKnownProcAddressImpl(HMODULE hmod, const char *name, F) { +template +F GetKnownProcAddressImpl(M hmod, const char *name, F) { auto proc = reinterpret_cast(dlsym(hmod, name)); if (!proc) { LogPrint("Error resolving ", name, " from UPNP library. This often happens if there is version mismatch!");