From: INSUN PYO Date: Mon, 3 Feb 2020 00:03:18 +0000 (+0900) Subject: Fix build error. X-Git-Tag: submit/tizen/20210607.045509~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d26a6c66cb725bbd17d9492bfb6489ecc672709d;p=platform%2Fhal%2Fbackend%2Femulator%2Fdevice-emulator.git Fix build error. A macro ARRAY_SIZE is defined in libdevice-node, and libdevice-node removes it." Change-Id: Id763d7f4008a0ce774f2ba263c8ba8817731e735 --- 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 #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"