summaryrefslogtreecommitdiff
path: root/clients/simple-touch.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-10-19 17:12:38 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-10-19 17:12:38 -0400
commit5717b6dbf1b9272c7bd9bdebe5a4ac267afca687 (patch)
tree3e834ce8392c45e37a86de82f24724c79ddd2c51 /clients/simple-touch.c
parentf461eee2b0bc99e2d444544f9cb3d9e21200595d (diff)
downloadweston-5717b6dbf1b9272c7bd9bdebe5a4ac267afca687.tar.gz
Stop relying on ARRAY_LENGTH being defined in wayland-util.h
Time to break a bad habit.
Diffstat (limited to 'clients/simple-touch.c')
-rw-r--r--clients/simple-touch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/simple-touch.c b/clients/simple-touch.c
index 0eeb8f9e..cbe38770 100644
--- a/clients/simple-touch.c
+++ b/clients/simple-touch.c
@@ -32,6 +32,8 @@
#include <wayland-client.h>
#include "../shared/os-compatibility.h"
+#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
+
struct touch {
struct wl_display *display;
struct wl_registry *registry;