From cf67902d2c0bfb2ec19e366981544ff2859bc664 Mon Sep 17 00:00:00 2001 From: Jose Date: Tue, 1 Oct 2019 18:43:29 +0200 Subject: Build IceIAP only with iOS platforms --- cpp/src/IceIAP/Connector.mm | 6 ++++++ cpp/src/IceIAP/EndpointI.mm | 6 ++++++ cpp/src/IceIAP/Transceiver.mm | 6 ++++++ 3 files changed, 18 insertions(+) (limited to 'cpp/src') 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 + +#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 + +#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 + +#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([err code]); throw ex; } + +#endif -- cgit v1.2.3