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

D. Hugh Redelmeier hugh at mimosa.com
Mon Feb 9 01:13:43 EET 2015

| 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.

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

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.

More information about the Swan-dev mailing list