This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -D_ANSI_C_SOURCE on AIX
- To: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: -D_ANSI_C_SOURCE on AIX
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 15 Mar 2000 14:52:21 -0700
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <jmzorzdhx5.fsf@envy.cygnus.com>you write:
> Jeffrey A Law <law@cygnus.com> writes:
>
> > Actually, I'd wonder if we should always define _ANSI_C_SOURCE, unless
> > -traditional was given. Remember, by default GCC is an (almost) ANSI
> > compiler.
>
> `strict ANSI compliance' in this context means `breaks programs
> written for UNIX/POSIX/AIX systems.' _ANSI_C_SOURCE switches off
> things like the declaration of fdopen() in stdio.h. You want it left
> undefined for most normal programs.
OK. Just wondering. Thanks for the clarification.
jeff