summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ios/StreamTransceiver.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-07-01 20:00:13 +0200
committerJose <jose@zeroc.com>2019-07-01 20:00:13 +0200
commita3cb0f03fc15f05138a879ba4619784af547d13c (patch)
treee29d32dc765bf6bd6913346f09d68b8743562f5b /cpp/src/Ice/ios/StreamTransceiver.cpp
parentpass SLICEFLAGS to Slice compilers (diff)
downloadice-a3cb0f03fc15f05138a879ba4619784af547d13c.tar.bz2
ice-a3cb0f03fc15f05138a879ba4619784af547d13c.tar.xz
ice-a3cb0f03fc15f05138a879ba4619784af547d13c.zip
Add ifdef around iOS specific code
Diffstat (limited to 'cpp/src/Ice/ios/StreamTransceiver.cpp')
-rw-r--r--cpp/src/Ice/ios/StreamTransceiver.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/Ice/ios/StreamTransceiver.cpp b/cpp/src/Ice/ios/StreamTransceiver.cpp
index fc42cb948ea..1405e476d39 100644
--- a/cpp/src/Ice/ios/StreamTransceiver.cpp
+++ b/cpp/src/Ice/ios/StreamTransceiver.cpp
@@ -2,6 +2,10 @@
// Copyright (c) ZeroC, Inc. All rights reserved.
//
+#include <Ice/Config.h>
+
+#if TARGET_OS_IPHONE != 0
+
#include "StreamTransceiver.h"
#include "StreamEndpointI.h"
@@ -547,3 +551,4 @@ IceObjC::StreamTransceiver::checkErrorStatus(CFWriteStreamRef writeStream, CFRea
}
throw CFNetworkException(file, line, static_cast<int>(CFErrorGetCode(err.get())), fromCFString(domain));
}
+#endif