How can I get -std=c99 without definine __STRICT_ANSI__?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux