diff --git a/windows/Alethzero.vcxproj b/windows/Alethzero.vcxproj
index 06c78c4da..721c0729e 100644
--- a/windows/Alethzero.vcxproj
+++ b/windows/Alethzero.vcxproj
@@ -87,7 +87,7 @@
Use
Disabled
- WIN32;_DEBUG;%(PreprocessorDefinitions)
+ WIN32;_WINSOCK_DEPRECATED_NO_WARNINGS;_DEBUG;%(PreprocessorDefinitions)
MultiThreadedDebugDLL
true
stdafx.h
@@ -126,7 +126,7 @@
MaxSpeed
true
true
- WIN32;NDEBUG;%(PreprocessorDefinitions)
+ WIN32;_WINSOCK_DEPRECATED_NO_WARNINGS;NDEBUG;%(PreprocessorDefinitions)
MultiThreadedDLL
true
AnySuitable
diff --git a/windows/LibMiniUPnPc.vcxproj b/windows/LibMiniUPnPc.vcxproj
index 865b6c74d..7e5e44412 100644
--- a/windows/LibMiniUPnPc.vcxproj
+++ b/windows/LibMiniUPnPc.vcxproj
@@ -106,7 +106,7 @@
Disabled
MultiThreadedDebugDLL
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)
@@ -142,7 +142,7 @@
true
true
MultiThreadedDLL
- _CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
+ _CRT_SECURE_NO_WARNINGS;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
4100;4244;4245;4267;4389;%(DisableSpecificWarnings)