projects
/
platform
/
adaptation
/
emulator
/
device-manager-plugin-emul.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
495ad38
)
Fix build error.
72/223672/1
accepted/tizen/5.5/unified/20200205.014425
accepted/tizen/5.5/unified/20200205.063456
submit/tizen_5.5/20200131.024742
submit/tizen_5.5/20200204.002631
submit/tizen_5.5/20200205.031401
submit/tizen_5.5/20200205.062045
author
INSUN PYO
<insun.pyo@samsung.com>
Mon, 3 Feb 2020 00:03:18 +0000
(09:03 +0900)
committer
INSUN PYO
<insun.pyo@samsung.com>
Mon, 3 Feb 2020 00:08:58 +0000
(
00:08
+0000)
A macro ARRAY_SIZE is defined in libdevice-node, and libdevice-node removes it."
Change-Id: Id763d7f4008a0ce774f2ba263c8ba8817731e735
(cherry picked from commit
d26a6c66cb725bbd17d9492bfb6489ecc672709d
)
hw/external_connection/external_connection.c
patch
|
blob
|
history
diff --git
a/hw/external_connection/external_connection.c
b/hw/external_connection/external_connection.c
index f1106acd53f8307eaf3510b7e96e921f9244766d..f317b52a88e8e6b509b9ac9022be37433e6638f0 100644
(file)
--- 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"