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

Rick Mann rmann@latencyzero.com
Thu Sep 20 19:51:00 GMT 2007


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



More information about the Gcc-help mailing list