diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-19 17:08:38 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-19 17:08:38 -0400 |
commit | bdd272f024744b4ed5ba6daedef7eb023bcac7cb (patch) | |
tree | 61725e939ace9d69f52ddb6cc0f610e525a878b9 /cursor | |
parent | 56061674cd80e701174c1f1b1bf575aa308ecbd8 (diff) |
Move ARRAY_LENGTH out of public headers
Exporting unprefixed symbols is a pretty bad idea so don't do that.
Instea of redefining it WL_ARRAY_LENGTH, we just move the define to
our private header. The scanner generates code that uses ARRAY_LENGTH,
but we can just make it count the number elements and emit an integer
constant instead.
Diffstat (limited to 'cursor')
-rw-r--r-- | cursor/wayland-cursor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c index 0d1fec7..25e51c2 100644 --- a/cursor/wayland-cursor.c +++ b/cursor/wayland-cursor.c @@ -31,6 +31,8 @@ #include "os-compatibility.h" +#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0]) + struct shm_pool { struct wl_shm_pool *pool; int fd; |