diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-02-03 09:03:18 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2020-02-03 09:04:35 +0900 |
commit | d26a6c66cb725bbd17d9492bfb6489ecc672709d (patch) | |
tree | 7ee7b2beb0d4e32dbe6b5511aa4978b59bc7a89b | |
parent | 30b7edc79749e0ed784e45de128c50494de5446e (diff) | |
download | device-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.tar.gz device-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.tar.bz2 device-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.zip |
Fix build error.submit/tizen/20200205.015830submit/tizen/20200205.015759submit/tizen/20200131.025416accepted/tizen/unified/20200205.125252
A macro ARRAY_SIZE is defined in libdevice-node, and libdevice-node removes it."
Change-Id: Id763d7f4008a0ce774f2ba263c8ba8817731e735
-rw-r--r-- | hw/external_connection/external_connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/external_connection/external_connection.c b/hw/external_connection/external_connection.c index f1106ac..f317b52 100644 --- a/hw/external_connection/external_connection.c +++ b/hw/external_connection/external_connection.c @@ -29,6 +29,10 @@ #include <hw/shared.h> #include "../dbus.h" +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(name) (sizeof(name)/sizeof(name[0])) +#endif + #define EXTCON_BUS "org.tizen.system.deviced" #define EXTCON_OBJECT "/Org/Tizen/System/DeviceD/ExtCon" #define EXTCON_IFACE EXTCON_BUS".ExtCon" |