Stop relying on ARRAY_LENGTH being defined in wayland-util.h

Time to break a bad habit.
This commit is contained in:
Kristian Høgsberg
2012-10-19 17:12:38 -04:00
parent f461eee2b0
commit 5717b6dbf1
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -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;