summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2020-02-03 09:03:18 +0900
committerINSUN PYO <insun.pyo@samsung.com>2020-02-03 09:04:35 +0900
commitd26a6c66cb725bbd17d9492bfb6489ecc672709d (patch)
tree7ee7b2beb0d4e32dbe6b5511aa4978b59bc7a89b
parent30b7edc79749e0ed784e45de128c50494de5446e (diff)
downloaddevice-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.tar.gz
device-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.tar.bz2
device-manager-plugin-emul-d26a6c66cb725bbd17d9492bfb6489ecc672709d.zip
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.c4
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"