This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problem with ctype.h
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: Problem with ctype.h
- From: Zack Weinberg <zack@rabi.columbia.edu>
- Date: Mon, 26 Oct 1998 18:23:54 -0500
- cc: libc-hacker@cygnus.com
On Mon, 26 Oct 1998 14:52:15 -0800 (PST), H.J. Lu wrote:
>>
>> > >
>> > > > The question is if 1003.1-1996 allows everything in
>> > > > <bits/pthreadtypes.h> to be included in <ctype.h>.
>> > >
>> > > I think it does, but only because its allowance is so broad.
>> > > ANSI/ISO C definitely does not allow it.
>> >
>> > If that is the case, VSX-PCT is right to fail glibc on
>> >
>> > # gcc -ansi -D_POSIX_SOURCE
>>
>> Incorrect. It should not be using -D_POSIX_SOURCE to test ANSI/ISO C
>> conformance, only to test POSIX conformance. It should use gcc -ansi -pedan
>tic
>> test to test ANSI/ISO C conformance.
>
>I added -ansi to get rid of "unix". Or should I just ignore the
>failure on "unix"?
Try -undef, or -undef -D__STRICT_ANSI__.
zw