This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Don't claim GCC predefines __POSIX__
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 17 Feb 2012 13:48:13 -0500
- Subject: Re: Don't claim GCC predefines __POSIX__
- References: <Pine.LNX.4.64.1202171804570.8905@digraph.polyomino.org.uk>
On Fri, Feb 17, 2012 at 1:05 PM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> Bug 4596 notes that the claim in the manual that GCC predefines
> __POSIX__ on POSIX systems is wrong. ?Thus, I propose this patch to
> remove that claim (not mentioning the #system(posix) alternative since
> GCC preprocessor assertions are deprecated).
I agree that the manual should document reality and your patch looks good.
I have no opinion on the usefulness of a __POSIX__ definition by GCC.
How do you test that you are on a POSIX compliant system?
Cheers,
Carlos.