Minor adjustment to conditional include for CMIS-831, strangely TARGET_OS_MAC is always set to 1 so the code was not being included for iOS target.
git-svn-id: https://svn.apache.org/repos/asf/chemistry/objectivecmis/trunk@1619720 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m b/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
index 1817617..bede01c 100644
--- a/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
+++ b/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
@@ -308,7 +308,7 @@
{
switch (eventCode){
case NSStreamEventOpenCompleted:{
-#ifndef TARGET_OS_MAC
+#if TARGET_OS_IPHONE
// this fix breaks POST requests on MacOS targets
if (self.combinedInputStream.streamStatus != NSStreamStatusOpen) {
[self.combinedInputStream open]; // this seems to work around the 'Stream ... is sending an event before being opened' Apple bug