[Swan-dev] Add -std=c99 to the compiler flags?

Andrew Cagney andrew.cagney at gmail.com
Mon Feb 9 20:13:31 EET 2015


On 8 February 2015 at 18:13, D. Hugh Redelmeier <hugh at mimosa.com> wrote:
> | From: Andrew Cagney <andrew.cagney at gmail.com>
>
> | So, is -std=c99 in?
>
> I just scanned the manpage feature_test_macros(7).
>
> It seems that -std=c99 implicitly declares __STRICT_ANSI__.  That name
> seems scary.  I mean the STRICT part.  Does that mean we lose things?
> Maybe only -pedantic causes that problem.

Manual suggests -pedantic.

We've two choices, gnu99 and c99.

> Have you tried compiling with this flag?  Did anything interesting come
> up?

With a thumbs up in principal, its time to play ...

> I'm considering if we want _BSD_SOURCE defined (possibly for only one
> compilation unit) so that we can use timeradd(3).  To be honest, the
> functionality we need seems really easy to implement ourselves.

Never say "easy" :-)

You could pull in the BSD source under external/ as ...


More information about the Swan-dev mailing list