2015-07-31 8:21 GMT+02:00 Bruce Evans <b...@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 <e...@nuxi.nl> Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"