diff options
author | Jose <jose@zeroc.com> | 2019-07-01 20:00:13 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-07-01 20:00:13 +0200 |
commit | a3cb0f03fc15f05138a879ba4619784af547d13c (patch) | |
tree | e29d32dc765bf6bd6913346f09d68b8743562f5b /cpp/src | |
parent | pass SLICEFLAGS to Slice compilers (diff) | |
download | ice-a3cb0f03fc15f05138a879ba4619784af547d13c.tar.bz2 ice-a3cb0f03fc15f05138a879ba4619784af547d13c.tar.xz ice-a3cb0f03fc15f05138a879ba4619784af547d13c.zip |
Add ifdef around iOS specific code
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/ios/StreamAcceptor.cpp | 6 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamConnector.cpp | 5 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamConnector.h | 6 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamEndpointI.cpp | 5 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamEndpointI.h | 6 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamTransceiver.cpp | 5 | ||||
-rw-r--r-- | cpp/src/Ice/ios/StreamTransceiver.h | 6 |
7 files changed, 39 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 diff --git a/cpp/src/Ice/ios/StreamConnector.cpp b/cpp/src/Ice/ios/StreamConnector.cpp index c4764d7c2f7..e69f4cdba8f 100644 --- a/cpp/src/Ice/ios/StreamConnector.cpp +++ b/cpp/src/Ice/ios/StreamConnector.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 "StreamConnector.h" @@ -139,3 +143,4 @@ IceObjC::StreamConnector::StreamConnector(const InstancePtr& instance, IceObjC::StreamConnector::~StreamConnector() { } +#endif diff --git a/cpp/src/Ice/ios/StreamConnector.h b/cpp/src/Ice/ios/StreamConnector.h index ad79fd415cb..bbdaa2a8bad 100644 --- a/cpp/src/Ice/ios/StreamConnector.h +++ b/cpp/src/Ice/ios/StreamConnector.h @@ -5,6 +5,10 @@ #ifndef ICE_STREAM_CONNECTOR_H #define ICE_STREAM_CONNECTOR_H +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include <Ice/TransceiverF.h> #include <Ice/Connector.h> @@ -44,3 +48,5 @@ private: } #endif + +#endif diff --git a/cpp/src/Ice/ios/StreamEndpointI.cpp b/cpp/src/Ice/ios/StreamEndpointI.cpp index 68ab85aea54..51f39dd6c3c 100644 --- a/cpp/src/Ice/ios/StreamEndpointI.cpp +++ b/cpp/src/Ice/ios/StreamEndpointI.cpp @@ -2,6 +2,10 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include "StreamEndpointI.h" #include "StreamAcceptor.h" #include "StreamConnector.h" @@ -486,3 +490,4 @@ IceObjC::StreamEndpointFactory::clone(const ProtocolInstancePtr& instance) const { return new StreamEndpointFactory(_instance->clone(instance)); } +#endif diff --git a/cpp/src/Ice/ios/StreamEndpointI.h b/cpp/src/Ice/ios/StreamEndpointI.h index d8e70732129..6e117e8871b 100644 --- a/cpp/src/Ice/ios/StreamEndpointI.h +++ b/cpp/src/Ice/ios/StreamEndpointI.h @@ -5,6 +5,10 @@ #ifndef ICE_STREAM_ENDPOINT_I_H #define ICE_STREAM_ENDPOINT_I_H +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include <Ice/ProtocolInstance.h> #include <Ice/IPEndpointI.h> #include <Ice/WSEndpoint.h> @@ -151,3 +155,5 @@ private: } #endif + +#endif 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 diff --git a/cpp/src/Ice/ios/StreamTransceiver.h b/cpp/src/Ice/ios/StreamTransceiver.h index ed210c3c6e8..8b2b4993c2b 100644 --- a/cpp/src/Ice/ios/StreamTransceiver.h +++ b/cpp/src/Ice/ios/StreamTransceiver.h @@ -5,6 +5,10 @@ #ifndef ICE_STREAM_TRANSCEIVER_H #define ICE_STREAM_TRANSCEIVER_H +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include <Ice/WSTransceiver.h> #include <Ice/Network.h> #include <Ice/Selector.h> @@ -85,3 +89,5 @@ private: } #endif + +#endif |