From 6cba1355ec72fda59735a4766d1f6d7792c99670 Mon Sep 17 00:00:00 2001 From: Mikhail Kashkarov Date: Wed, 23 Oct 2019 18:11:16 +0300 Subject: [PATCH] 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 --- include/bt-internal-types.c | 2 ++ include/bt-internal-types.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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, -- 2.7.4