This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]