From a3cb0f03fc15f05138a879ba4619784af547d13c Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 1 Jul 2019 20:00:13 +0200 Subject: Add ifdef around iOS specific code --- cpp/src/Ice/ios/StreamTransceiver.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/Ice/ios/StreamTransceiver.cpp') 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 + +#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(CFErrorGetCode(err.get())), fromCFString(domain)); } +#endif -- cgit v1.2.3