Fixed a build error about BLE
authorJaewook Jung <jw0213.jung@samsung.com>
Wed, 18 Jan 2017 01:22:50 +0000 (10:22 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 19 Jan 2017 04:59:57 +0000 (04:59 +0000)
When trying to build android without BLE transport, the build error is caused.
caleconnectionmanager.c is included only when built with BLE transport,
so the functions on it should not be called without BLE.

Change-Id: Ic9ad006ec21e93774c5df46747b296e64cfb76fb
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16517
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/connectivity/util/src/cautilinterface.c

index af1118a..eb2e25d 100644 (file)
@@ -317,7 +317,7 @@ CAResult_t CAUtilStopLEScan()
 CAResult_t CAUtilStartLEAdvertising()
 {
     OIC_LOG(DEBUG, TAG, "CAUtilStartLEAdvertising");
-#if defined(__ANDROID__)
+#if defined(LE_ADAPTER) && defined(__ANDROID__)
     return CAManagerLEStartAdvertising();
 #else
     OIC_LOG(DEBUG, TAG, "it is not supported");
@@ -328,7 +328,7 @@ CAResult_t CAUtilStartLEAdvertising()
 CAResult_t CAUtilStopLEAdvertising()
 {
     OIC_LOG(DEBUG, TAG, "CAUtilStopLEAdvertising");
-#if defined(__ANDROID__)
+#if defined(LE_ADAPTER) && defined(__ANDROID__)
     return CAManagerLEStopAdvertising();
 #else
     OIC_LOG(DEBUG, TAG, "it is not supported");