warn against K&R compiler in glibc 2.2
Ulrich Drepper
drepper@redhat.com
Thu Mar 30 20:14:00 GMT 2000
Andreas Jaeger <aj@suse.de> writes:
> The easiest way is AFAIK to add the following to some file:
> #ifndef __STDC__
> # error "You need a ISO C conforming compiler to use the glibc headers"
> #endif
If we are thinking about other compilers but gcc (which is legitimate
for the use of glibc) then this is not enough. Most compilers beside
gcc do not define __STDC__ except if you direct the compiler to be
strictly compliant. This is a weakness in the ISO C standard.
I don't know whether we can add any reasonable check.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list