diff --git a/ext/installfiles/windows/ZeroTier One.aip b/ext/installfiles/windows/ZeroTier One.aip index 147094f93..383ff625c 100644 --- a/ext/installfiles/windows/ZeroTier One.aip +++ b/ext/installfiles/windows/ZeroTier One.aip @@ -1,5 +1,5 @@ - + @@ -26,10 +26,10 @@ - + - + @@ -59,7 +59,7 @@ - + @@ -338,7 +338,7 @@ - + diff --git a/ext/libnatpmp/natpmp.c b/ext/libnatpmp/natpmp.c index 3a4981292..9843c41e1 100644 --- a/ext/libnatpmp/natpmp.c +++ b/ext/libnatpmp/natpmp.c @@ -39,8 +39,12 @@ POSSIBILITY OF SUCH DAMAGE. #include #include #include +#ifndef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK +#endif +#ifndef ECONNREFUSED #define ECONNREFUSED WSAECONNREFUSED +#endif #include "wingettimeofday.h" #define gettimeofday natpmp_gettimeofday #else diff --git a/osdep/PortMapper.cpp b/osdep/PortMapper.cpp index 87c886c2a..03e2648f5 100644 --- a/osdep/PortMapper.cpp +++ b/osdep/PortMapper.cpp @@ -40,10 +40,14 @@ #include "OSUtils.hpp" #include "PortMapper.hpp" +// These must be defined to get rid of dynamic export stuff in libminiupnpc and libnatpmp #ifdef __WINDOWS__ #ifndef MINIUPNP_STATICLIB #define MINIUPNP_STATICLIB #endif +#ifndef STATICLIB +#define STATICLIB +#endif #endif #include "../ext/miniupnpc/miniupnpc.h" diff --git a/version.h b/version.h index eb95635c0..71d9ca615 100644 --- a/version.h +++ b/version.h @@ -41,6 +41,6 @@ /** * Revision */ -#define ZEROTIER_ONE_VERSION_REVISION 1 +#define ZEROTIER_ONE_VERSION_REVISION 2 #endif diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj b/windows/ZeroTierOne/ZeroTierOne.vcxproj index 5da01505a..19cd9daf0 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj @@ -21,6 +21,9 @@ + + + @@ -64,7 +67,7 @@ - + @@ -91,6 +94,9 @@ + + + @@ -154,8 +160,8 @@ + - @@ -243,7 +249,7 @@ true - NOMINMAX;ZT_TRACE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;%(PreprocessorDefinitions) + NOMINMAX;STATICLIB;WIN32;ZT_TRACE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;%(PreprocessorDefinitions) true @@ -258,7 +264,7 @@ true - NOMINMAX;ZT_TRACE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;%(PreprocessorDefinitions) + NOMINMAX;STATICLIB;WIN32;ZT_TRACE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;%(PreprocessorDefinitions) false @@ -276,7 +282,7 @@ true - ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;NOMINMAX;%(PreprocessorDefinitions) + STATICLIB;ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;WIN32;NOMINMAX;%(PreprocessorDefinitions) MultiThreaded NoExtensions true @@ -301,7 +307,7 @@ true - ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;NOMINMAX;%(PreprocessorDefinitions) + STATICLIB;ZT_OFFICIAL_RELEASE;ZT_AUTO_UPDATE;ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;WIN32;NOMINMAX;%(PreprocessorDefinitions) MultiThreaded NotSet true diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters index 6475137c4..946464ea6 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters @@ -85,6 +85,12 @@ {56cc3ab8-3336-4a22-9471-c267ee46cd54} + + {d7292d0d-72a0-4ed6-b717-21debb120737} + + + {409ec37e-ff36-4c13-b18d-52d6052e0ca2} + @@ -186,9 +192,6 @@ Source Files\osdep - - Source Files\osdep - Source Files\node @@ -237,6 +240,18 @@ Source Files\ext\miniupnpc + + Source Files\osdep + + + Source Files\ext\libnatpmp + + + Source Files\ext\libnatpmp + + + Source Files\ext\libnatpmp + @@ -401,9 +416,6 @@ Header Files\osdep - - Header Files\osdep - Header Files\ext\bin\miniupnpc\include @@ -515,6 +527,18 @@ Header Files\ext\miniupnpc + + Header Files\osdep + + + Header Files\ext\libnatpmp + + + Header Files\ext\libnatpmp + + + Header Files\ext\libnatpmp +