diff --git a/windows/LibMiniUPnPc.vcxproj b/windows/LibMiniUPnPc.vcxproj
index 7e5e44412..07489d0e8 100644
--- a/windows/LibMiniUPnPc.vcxproj
+++ b/windows/LibMiniUPnPc.vcxproj
@@ -106,7 +106,7 @@
Disabled
MultiThreadedDebugDLL
- _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MINIUPNP_STATICLIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)
@@ -123,7 +123,7 @@
Disabled
MultiThreadedDebugDLL
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MINIUPNP_STATICLIB;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)
@@ -142,7 +142,7 @@
true
true
MultiThreadedDLL
- _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MINIUPNP_STATICLIB;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)
@@ -163,7 +163,7 @@
true
true
MultiThreadedDLL
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;MINIUPNP_STATICLIB;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)