add darwin feature test for bits/atomic_base.h etc.
authorGregg Reynolds <reynolds-gregg@norc.org>
Mon, 6 Jun 2016 07:52:32 +0000 (02:52 -0500)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 26 Sep 2016 06:55:22 +0000 (06:55 +0000)
Change-Id: I2f0dc21a7f11f6f071f37f6dec78685ce89354ba
Signed-off-by: Gregg Reynolds <reynolds-gregg@norc.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8491
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
service/resource-encapsulation/src/resourceBroker/src/ResourcePresence.cpp

index 7174ba6..97cbe0b 100644 (file)
 
 #include "ResourcePresence.h"
 
-#include <bits/atomic_base.h>
-#include <bits/shared_ptr_base.h>
+#ifndef __APPLE__
+    #ifndef TARGET_OS_MAC
+        #include <bits/atomic_base.h>
+        #include <bits/shared_ptr_base.h>
+    #endif
+#endif
 #include <time.h>
 #include <unistd.h>
 #include <cstdbool>