Re: [PATCH v2] Fix definition of ARRAY_SIZE for non-gcc builds

2015-06-24 Thread Charles Bailey
On Wed, Jun 24, 2015 at 11:12:07PM +0100, Charles Bailey wrote: > From: Charles Bailey > > The improved ARRAY_SIZE macro uses BARF_UNLESS_AN_ARRAY which is expands > to a valid check for recent gcc versions and to 0 for older gcc > versions but is not defined on non-gcc builds. Actually hitting

[PATCH v2] Fix definition of ARRAY_SIZE for non-gcc builds

2015-06-24 Thread Charles Bailey
From: Charles Bailey The improved ARRAY_SIZE macro uses BARF_UNLESS_AN_ARRAY which is expands to a valid check for recent gcc versions and to 0 for older gcc versions but is not defined on non-gcc builds. Non-gcc builds need this macro to expand to 0 as well. The current outer test (defined(__GN