This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problem with ctype.h
- To: roland@frob.com (Roland McGrath)
- Subject: Re: Problem with ctype.h
- From: hjl@lucon.org (H.J. Lu)
- Date: Mon, 26 Oct 1998 16:31:37 -0800 (PST)
- Cc: libc-hacker@cygnus.com
>
> > I added -ansi to get rid of "unix". Or should I just ignore the
> > failure on "unix"?
>
> You miss the point. Using -ansi -D_POSIX_SOURCE is the right thing for a
> strict POSIX environment, and -ansi -pedantic is the right thing for a
> strict ANSI/ISO C environment. The only problem I had was complaining
> about violations of ANSI/ISO C when you used -ansi -D_POSIX_SOURCE; if
> ANSI/ISO C compliance is what's being tested, then -ansi -pedantic must be
> used.
>
I was running the POSIX96 test in VSX-PCT. FYI, the POSIX96 test
includes both ANSI C and POSIX C tests. In the case of <ctype.h>,
it is in the ANSI C test. No, I don't know how to set a CFLAGS for
the ANSI part and a different CFLAGS for the POSIX part.
--
H.J. Lu (hjl@gnu.org)