This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How can I get -std=c99 without definine __STRICT_ANSI__?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Rick Mann <rmann at latencyzero dot com>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 20 Sep 2007 14:20:27 -0500
- Subject: Re: How can I get -std=c99 without definine __STRICT_ANSI__?
Hi Rick,
> Is there no way to get both the language features and the non-
> standard library features?
If you want strict C99, use: -std=c99
If you want C99 plus GNU extensions, use: -std:gnu99 (which is the default
for C code, if not specified)
What you can't do concurrently is have both "I only want strict C99 language
features without extensions (-std:c99)" and "I want GNU extensions to C99
(-std:gnu99)".
That'd be like having tea and no tea. You'd be one hoopy frood.
HTH,
--Eljay