diff options
author | Jose <jose@zeroc.com> | 2019-10-01 18:43:29 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-10-01 18:43:29 +0200 |
commit | cf67902d2c0bfb2ec19e366981544ff2859bc664 (patch) | |
tree | 5a54ddb1265a8aa7bccc2310f0034a326859c645 /cpp | |
parent | Regenerate Swift Xcode projects (diff) | |
download | ice-cf67902d2c0bfb2ec19e366981544ff2859bc664.tar.bz2 ice-cf67902d2c0bfb2ec19e366981544ff2859bc664.tar.xz ice-cf67902d2c0bfb2ec19e366981544ff2859bc664.zip |
Build IceIAP only with iOS platforms
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/IceIAP/Connector.mm | 6 | ||||
-rw-r--r-- | cpp/src/IceIAP/EndpointI.mm | 6 | ||||
-rw-r--r-- | cpp/src/IceIAP/Transceiver.mm | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/cpp/src/IceIAP/Connector.mm b/cpp/src/IceIAP/Connector.mm index bb77df81da2..0a24468efba 100644 --- a/cpp/src/IceIAP/Connector.mm +++ b/cpp/src/IceIAP/Connector.mm @@ -2,6 +2,10 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include "Transceiver.h" #include "EndpointI.h" #include "Connector.h" @@ -151,3 +155,5 @@ IceObjC::iAPConnector::~iAPConnector() [_accessory release]; #endif } + +#endif diff --git a/cpp/src/IceIAP/EndpointI.mm b/cpp/src/IceIAP/EndpointI.mm index b9f2f6ef05a..649b285c584 100644 --- a/cpp/src/IceIAP/EndpointI.mm +++ b/cpp/src/IceIAP/EndpointI.mm @@ -2,6 +2,10 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include "EndpointI.h" #include "Connector.h" @@ -705,3 +709,5 @@ IceObjC::iAPEndpointFactory::clone(const ProtocolInstancePtr& instance) const { return new iAPEndpointFactory(instance); } + +#endif diff --git a/cpp/src/IceIAP/Transceiver.mm b/cpp/src/IceIAP/Transceiver.mm index 360cff2078b..dfba38805ac 100644 --- a/cpp/src/IceIAP/Transceiver.mm +++ b/cpp/src/IceIAP/Transceiver.mm @@ -2,6 +2,10 @@ // Copyright (c) ZeroC, Inc. All rights reserved. // +#include <Ice/Config.h> + +#if TARGET_OS_IPHONE != 0 + #include "Transceiver.h" #include "EndpointI.h" @@ -456,3 +460,5 @@ IceObjC::iAPTransceiver::checkErrorStatus(NSStream* stream, const char* file, in ex.error = static_cast<int>([err code]); throw ex; } + +#endif |