ivi-compositor: Use the helpers for array length 96/24196/2
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 28 Feb 2020 19:56:18 +0000 (21:56 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 11 Mar 2020 14:44:10 +0000 (16:44 +0200)
Bug-AGL: SPEC-3217

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I11f5b2a761062aeb5b8c146c2b3617362a353e76

src/ivi-compositor.h
src/main.c

index 8631477..446390d 100644 (file)
@@ -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 */
index 8c4b10b..f715280 100644 (file)
@@ -47,6 +47,7 @@
 #include <libweston/weston-log.h>
 
 #include "shared/os-compatibility.h"
+#include "shared/helpers.h"
 
 #include "agl-shell-server-protocol.h"