diff options
author | Jose <jose@zeroc.com> | 2019-10-01 22:23:18 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-10-01 22:23:18 +0200 |
commit | a086f357897326902e194f9daa2c37e7f8ce591e (patch) | |
tree | 3dba1c3ce00b45c08731e76a1753df36697b4e2e /cpp/src/Ice/TcpAcceptor.cpp | |
parent | Build IceIAP only with iOS platforms (diff) | |
download | ice-a086f357897326902e194f9daa2c37e7f8ce591e.tar.bz2 ice-a086f357897326902e194f9daa2c37e7f8ce591e.tar.xz ice-a086f357897326902e194f9daa2c37e7f8ce591e.zip |
Conditional compilation of TCP transport with Swift builds
Diffstat (limited to 'cpp/src/Ice/TcpAcceptor.cpp')
-rw-r--r-- | cpp/src/Ice/TcpAcceptor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/src/Ice/TcpAcceptor.cpp b/cpp/src/Ice/TcpAcceptor.cpp index 6086199dff7..6ee669f4ed9 100644 --- a/cpp/src/Ice/TcpAcceptor.cpp +++ b/cpp/src/Ice/TcpAcceptor.cpp @@ -2,6 +2,10 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#include <Ice/Config.h> + +#if !defined(__APPLE__) || TARGET_OS_IPHONE == 0 + #include <Ice/TcpAcceptor.h> #include <Ice/TcpTransceiver.h> #include <Ice/TcpEndpointI.h> @@ -347,3 +351,5 @@ IceInternal::TcpAcceptor::~TcpAcceptor() assert(_acceptFd == INVALID_SOCKET); #endif } + +#endif |