commit | 5717b6dbf1b9272c7bd9bdebe5a4ac267afca687 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Fri Oct 19 17:12:38 2012 -0400 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Oct 19 17:12:38 2012 -0400 |
tree | 3e834ce8392c45e37a86de82f24724c79ddd2c51 | |
parent | f461eee2b0bc99e2d444544f9cb3d9e21200595d [diff] [blame] |
Stop relying on ARRAY_LENGTH being defined in wayland-util.h Time to break a bad habit.
diff --git a/src/compositor.h b/src/compositor.h index 4c61db7..19ab11e 100644 --- a/src/compositor.h +++ b/src/compositor.h
@@ -37,6 +37,7 @@ #include "../shared/config-parser.h" #include "weston-egl-ext.h" +#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) struct weston_transform { struct weston_matrix matrix;