This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How can I get -std=c99 without definine __STRICT_ANSI__?
- From: Rick Mann <rmann at latencyzero dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 20 Sep 2007 11:56:39 -0700
- Subject: How can I get -std=c99 without definine __STRICT_ANSI__?
I'm trying to write C code that uses c99 features, like declaring the
for loop variable inside the for statement. But when I add -std=c99,
it also defines __STRICT_ANSI__, causing newlib to exclude
declarations for things like snprintf().
Is there no way to get both the language features and the non-
standard library features?
TIA,
Rick