Subject: Re: current isn't building and I think it's
To: YAMAMOTO Takashi <>
From: Perry E. Metzger <>
List: current-users
Date: 12/26/2005 22:03:41
YAMAMOTO Takashi <> writes:
>> > -std=c89 and -std=c99 have subtle differences, which can even alter
>> > the meaning of code.
>> Can you name anything that alters the meaning of conformant c89 code?
> for example:
> int
> f(void)
> {
> 	if (0)
> 		sizeof(struct t {int a;});
> 	return sizeof(struct t);
> }
> too tricky?  maybe. :-)

That's not an unreasonable worry. Hmm.

Perhaps the right thing is to conditionalize a rename of inline in our
headers on __STRICT_ANSI__, which would be defined any time this was
an issue.

I'm going to think about this for a few hours.

Meanwhile, the obvious workaround if someone needs to build a pkg is
NOT to use the -ansi flag.