From: Mikhail Kashkarov Date: Wed, 23 Oct 2019 15:11:16 +0000 (+0300) Subject: Support build with -fno-common X-Git-Tag: accepted/tizen/unified/20191101.042113~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F216344%2F1;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git Support build with -fno-common Fix up ASan build: do not use variable definitons inside header files to avoid multiple definitons error. Change-Id: I00d74bd5c9e3e966b1acc29416f273477eaae7f5 Signed-off-by: Mikhail Kashkarov --- diff --git a/include/bt-internal-types.c b/include/bt-internal-types.c index 1c91f88..402fcdd 100644 --- a/include/bt-internal-types.c +++ b/include/bt-internal-types.c @@ -21,6 +21,8 @@ #include "bt-internal-types.h" +bool is_battery_monitor_enabled = false; + tizen_profile_t profile = _PROFILE_UNKNOWN; bt_plugin_info_t *headed_plugin_info = NULL; diff --git a/include/bt-internal-types.h b/include/bt-internal-types.h index 51de888..20eeb1b 100644 --- a/include/bt-internal-types.h +++ b/include/bt-internal-types.h @@ -49,7 +49,7 @@ typedef enum { BT_FTP_SERVER, } bt_server_type_t; -bool is_battery_monitor_enabled; +extern bool is_battery_monitor_enabled; typedef enum { BT_SYNC_REQ,