summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ios/StreamAcceptor.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/StreamAcceptor.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/StreamAcceptor.cpp')
-rw-r--r--cpp/src/Ice/ios/StreamAcceptor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/ios/StreamAcceptor.cpp b/cpp/src/Ice/ios/StreamAcceptor.cpp
index 29b8ea47b7b..20dcb09962d 100644
--- a/cpp/src/Ice/ios/StreamAcceptor.cpp
+++ b/cpp/src/Ice/ios/StreamAcceptor.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"
#include "StreamAcceptor.h"
@@ -146,3 +150,5 @@ IceObjC::StreamAcceptor::~StreamAcceptor()
{
assert(_fd == INVALID_SOCKET);
}
+
+#endif