svn commit: r286103 - head/share/man/man9

Ed Schouten ed at nuxi.nl
Tue Aug 4 18:19:43 UTC 2015


2015-07-31 8:21 GMT+02:00 Bruce Evans <brde at optusnet.com.au>:
> For gcc before 4.6,
> the ifdef reduces to using __COUNTER__ as the second variable if
> __COUNTER__ is supported, else nothing.  So for the undocumented
> subset of compilers that support __COUNTER__ all cases work, and
> for the complementary subset no cases work (the macro is null).

I was wondering: could we solve this by not using a typedef, but an
external declaration:

extern int __whatever[expr ? 1 : -1];

I think we can safely repeat this multiple times without triggering
any compiler errors.

-- 
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717


More information about the svn-src-head mailing list