[PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

Pekka Paalanen ppaalanen at gmail.com
Thu Oct 18 10:23:49 PDT 2012


On Thu, 18 Oct 2012 09:15:08 -0700
Chad Versace <chad.versace at linux.intel.com> wrote:

> wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which polluted
> the global namespace. This caused symbol collisions in projects that
> defined ARRAY_LENGTH slightly differently.
> 
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>

Hi Chad,

do you have the weston patches to go with these?
I think Weston code heavily uses both the macros you replaced.


Thanks,
pq


More information about the wayland-devel mailing list