This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with ctype.h


> 
> > 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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]