Turns out it wasn't hard to add miniupnpc to the VS2012 project and just have it build with the rest of the code.

This commit is contained in:
Adam Ierymenko 2015-11-16 19:04:04 -08:00
parent dc8edea0c6
commit 0f5fb48a0b
35 changed files with 157 additions and 1633 deletions

View file

@ -46,8 +46,8 @@
#endif
#endif
#include "../ext/bin/miniupnpc/include/miniupnpc/miniupnpc.h"
#include "../ext/bin/miniupnpc/include/miniupnpc/upnpcommands.h"
#include "../ext/miniupnpc/miniupnpc.h"
#include "../ext/miniupnpc/upnpcommands.h"
namespace ZeroTier {
@ -81,7 +81,7 @@ public:
while (run) {
{
int upnpError = 0;
UPNPDev *devlist = upnpDiscover(2000,(const char *)0,(const char *)0,0,0,&upnpError);
UPNPDev *devlist = upnpDiscover(2000,(const char *)0,(const char *)0,0,0,0,&upnpError);
if (devlist) {
#ifdef ZT_UPNP_TRACE
{