On Tue, Jun 4, 2019 at 6:31 PM Bruce Evans <b...@optusnet.com.au> wrote:
> On Tue, 4 Jun 2019, Gleb Smirnoff wrote:
> > Why don't use C99 in 2019 instead of preprocessor define? Should be
> >
> >       union {
> >               void    *_cr_unused1;   /* compatibility with old ucred */
> >               pid_t   cr_pid;
> >       };
>
> Anonymous unions are a gnu89 extension.  Only broken C99 compilers like
> clang -std=c99 accept them.
>
> [Pedantic tangent elided.]

Gleb simply misspoke.  Anonymous unions are part of the standard C11,
rather than C99, language; ยง6.7.2.1, (13).

The point stands; it's 2019 and the feature has been part of the
working language long prior to its standardization in 2011.

Cheers,
Conrad
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to