summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/winrt/StreamTransceiver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/winrt/StreamTransceiver.cpp')
-rw-r--r--cpp/src/Ice/winrt/StreamTransceiver.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Ice/winrt/StreamTransceiver.cpp b/cpp/src/Ice/winrt/StreamTransceiver.cpp
index b9296fc48bc..3bc67733388 100644
--- a/cpp/src/Ice/winrt/StreamTransceiver.cpp
+++ b/cpp/src/Ice/winrt/StreamTransceiver.cpp
@@ -167,10 +167,19 @@ IceInternal::StreamTransceiver::startWrite(Buffer& buf)
{
try
{
+//
+// SocketProtectionLevel::Ssl deprecated in Windows 8.1
+//
+#if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (disable : 4973)
+#endif
IAsyncAction^ action = safe_cast<StreamSocket^>(_fd)->ConnectAsync(
_connectAddr.host,
_connectAddr.port,
_type == IceSSL::EndpointType ? SocketProtectionLevel::Ssl : SocketProtectionLevel::PlainSocket);
+#if defined(_MSC_VER) && _MSC_VER >= 1800
+# pragma warning (default : 4973)
+#endif
if(!checkIfErrorOrCompleted(SocketOperationConnect, action))
{