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: law at cygnus dot com
- Subject: Re: -D_ANSI_C_SOURCE on AIX
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 15 Mar 2000 13:47:50 -0800
- CC: gcc-patches at gcc dot gnu dot org
- References: <13919.953155200@upchuck>
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.
--
- Geoffrey Keating <geoffk@cygnus.com>