diff options
author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2015-07-28 16:50:18 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2015-07-28 16:50:18 -0700 |
commit | 14264c2d6f7d20b15081a1db5e8ca4b978d935a0 (patch) | |
tree | d9635c28bb7cda8aeb0a956db4ed3c3c09598437 /osdep/UPNPClient.cpp | |
parent | 3c54187c4019f29ed35a42ad3af06c38e16236ac (diff) | |
download | infinitytier-14264c2d6f7d20b15081a1db5e8ca4b978d935a0.tar.gz infinitytier-14264c2d6f7d20b15081a1db5e8ca4b978d935a0.zip |
Add miniupnpc builds for Windows, fix some Windows build warnings.
Diffstat (limited to 'osdep/UPNPClient.cpp')
-rw-r--r-- | osdep/UPNPClient.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/osdep/UPNPClient.cpp b/osdep/UPNPClient.cpp index 20aa9d39..ceecb3a3 100644 --- a/osdep/UPNPClient.cpp +++ b/osdep/UPNPClient.cpp @@ -40,8 +40,14 @@ #include "../node/Utils.hpp" #include "UPNPClient.hpp" -#include <miniupnpc/miniupnpc.h> -#include <miniupnpc/upnpcommands.h> +#ifdef __WINDOWS__ +#ifndef MINIUPNP_STATICLIB +#define MINIUPNP_STATICLIB +#endif +#endif + +#include "../ext/bin/miniupnpc/include/miniupnpc/miniupnpc.h" +#include "../ext/bin/miniupnpc/include/miniupnpc/upnpcommands.h" namespace ZeroTier { |