From: seunggi.hong Date: Mon, 6 Apr 2015 08:40:16 +0000 (+0900) Subject: Fix build error for mobile X-Git-Tag: submit/tizen/20150406.084653^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a87d6933fb2a3aacfe9b73ebf3ccfc3ad4456ad;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git Fix build error for mobile Change-Id: I7c40bdc30defb7c6a05fc6ee5b6ad96726afd0fa Signed-off-by: seunggi.hong --- diff --git a/externals/MsgNotificationWrapper.cpp b/externals/MsgNotificationWrapper.cpp index 58f403a..64ac709 100755 --- a/externals/MsgNotificationWrapper.cpp +++ b/externals/MsgNotificationWrapper.cpp @@ -34,8 +34,8 @@ extern "C" { -#include #ifndef MSG_WEARABLE_PROFILE +#include #include #include #include diff --git a/framework/deliver-handler/MsgDeliverHandler.cpp b/framework/deliver-handler/MsgDeliverHandler.cpp index 120703d..42039eb 100755 --- a/framework/deliver-handler/MsgDeliverHandler.cpp +++ b/framework/deliver-handler/MsgDeliverHandler.cpp @@ -14,7 +14,9 @@ * limitations under the License. */ +#ifndef MSG_WEARABLE_PROFILE #include +#endif // MSG_WEARABLE_PROFILE #include "MsgDebug.h" #include "MsgUtilFile.h" @@ -78,6 +80,7 @@ void MsgPlayTTSMode(MSG_SUB_TYPE_T msgSubType, msg_message_id_t msgId, bool isFa } } +#ifndef MSG_WEARABLE_PROFILE app_control_h svc_h; int ret = APP_CONTROL_ERROR_NONE; @@ -120,6 +123,7 @@ void MsgPlayTTSMode(MSG_SUB_TYPE_T msgSubType, msg_message_id_t msgId, bool isFa } app_control_destroy(svc_h); +#endif // MSG_WEARABLE_PROFILE } MsgChangePmState(); @@ -131,7 +135,7 @@ void MsgPlayTTSMode(MSG_SUB_TYPE_T msgSubType, msg_message_id_t msgId, bool isFa void MsgLaunchClass0(msg_message_id_t msgId) { MSG_BEGIN(); - +#ifndef MSG_WEARABLE_PROFILE app_control_h svc_h; int ret = APP_CONTROL_ERROR_NONE; @@ -176,7 +180,7 @@ void MsgLaunchClass0(msg_message_id_t msgId) } app_control_destroy(svc_h); - +#endif // MSG_WEARABLE_PROFILE MSG_END(); } @@ -490,6 +494,7 @@ msg_error_t MsgHandleSMS(MSG_MESSAGE_INFO_S *pMsgInfo, bool *pSendNoti, bool *bO MSG_DEBUG("Starting WAP Message Incoming."); MSG_PUSH_SERVICE_TYPE_T serviceType = (MSG_PUSH_SERVICE_TYPE_T)MsgSettingGetInt(PUSH_SERVICE_TYPE); +#ifndef MSG_WEARABLE_PROFILE app_control_h svc_handle = NULL; switch (pMsgInfo->msgType.subType) { @@ -588,6 +593,7 @@ msg_error_t MsgHandleSMS(MSG_MESSAGE_INFO_S *pMsgInfo, bool *pSendNoti, bool *bO *pSendNoti = false; break; } +#endif // MSG_WEARABLE_PROFILE } else if (pMsgInfo->msgType.subType == MSG_STATUS_REPORT_SMS) { *pSendNoti = false; *bOnlyNoti = true;