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/wayland-cursor.c | |
| parent | configure: Depend on a more strict version of publican (diff) | |
| download | wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar.gz wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar.bz2 wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar.lz wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar.xz wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.tar.zst wayland-bdd272f024744b4ed5ba6daedef7eb023bcac7cb.zip | |
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/wayland-cursor.c')
| -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; |
