Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2015 20:19:36 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        John-Mark Gurney <jmg@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r286103 - head/share/man/man9
Message-ID:  <CABh_MKmneTxb=djUdmSYPM2dnwuy1AzpNrvsCnPN0-NkvqsEXg@mail.gmail.com>
In-Reply-To: <20150731152253.Y1843@besplex.bde.org>
References:  <201507310328.t6V3S3LC087650@repo.freebsd.org> <20150731152253.Y1843@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2015-07-31 8:21 GMT+02:00 Bruce Evans <brde@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@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKmneTxb=djUdmSYPM2dnwuy1AzpNrvsCnPN0-NkvqsEXg>