mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 04:40:07 +01:00
windowed-output-api.h: Provide ARRAY_LENGH() for windowed-output-api
We need this common helper as we don't have access to shared helper, so just define one in-situ. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
207fed2710
commit
43f7b7b3bb
1 changed files with 4 additions and 0 deletions
|
|
@ -32,6 +32,10 @@ extern "C" {
|
|||
|
||||
#include <libweston/plugin-registry.h>
|
||||
|
||||
#ifndef ARRAY_LENGTH
|
||||
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
|
||||
#endif
|
||||
|
||||
struct weston_compositor;
|
||||
struct weston_output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue