Updating UPnP code for windows. (untested)

This commit is contained in:
Mikal Villa 2015-01-04 00:06:43 +01:00
parent 3c5e9ddd4e
commit 7a387b9a9f
2 changed files with 51 additions and 3 deletions

4
UPnP.h
View file

@ -50,7 +50,11 @@ namespace UPnP
char m_externalIPAddress[40];
bool m_IsModuleLoaded;
std::string m_Port = std::to_string (util::config::GetArg ("-port", 17070));
#ifndef _WIN32
void *m_Module;
#else
HINSTANCE *m_Module;
#endif
};
extern UPnP upnpc;
}