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__?
Hi,
I think the current default is still gnu89, since GCC has not yet
fully implemented C99. Some C99 features (like variable declaration
after some statements) are supported by default as part of the GNU
extension to C89, but others (like variable declaration in a "for"
statement) are disable unless you specify "-std=c99" or "-std=gnu99"
explicitly.
On 9/21/07, John Love-Jensen <eljay@adobe.com> wrote:
> If you want C99 plus GNU extensions, use: -std:gnu99 (which is the default
> for C code, if not specified)