summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-02-28 21:56:18 +0200
committerMarius Vlad <marius.vlad@collabora.com>2020-03-11 16:44:10 +0200
commitfe3358fa9b560a43ed9a46e50128ec99b2624ab5 (patch)
tree3417f6c65e990a91784afa135bc66233f02b2f32
parent6491e204fd4a9bd2d8d9b53a5dc81eb25ef57ee4 (diff)
ivi-compositor: Use the helpers for array length
Bug-AGL: SPEC-3217 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I11f5b2a761062aeb5b8c146c2b3617362a353e76
-rw-r--r--src/ivi-compositor.h2
-rw-r--r--src/main.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h
index 8631477..446390d 100644
--- a/src/ivi-compositor.h
+++ b/src/ivi-compositor.h
@@ -36,8 +36,6 @@
#include "agl-shell-server-protocol.h"
-#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
-
struct desktop_client {
struct wl_resource *resource;
struct wl_list link; /* ivi_compositor::desktop_clients */
diff --git a/src/main.c b/src/main.c
index 8c4b10b..f715280 100644
--- a/src/main.c
+++ b/src/main.c
@@ -47,6 +47,7 @@
#include <libweston/weston-log.h>
#include "shared/os-compatibility.h"
+#include "shared/helpers.h"
#include "agl-shell-server-protocol.h"