This is the mail archive of the
mailing list for the GCC project.
Re: need info on __need_ usage
- To: Bruce Korb <bkorb at cruzio dot com>
- Subject: Re: need info on __need_ usage
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 26 Sep 2000 17:55:45 -0700
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- References: <39C95F80.7C73015D@cruzio.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Sorry for the delay, I was out of town.
Bruce Korb <email@example.com> writes:
> [...] I believe that such unwrappable headers can be detected with
> the regular expression, "^#if.*__need_".
Only if you don't handle headers in the bits subdir. <math.h> and
<complex.h> use multi-inclusion for other things.
> The question is, "Is there a plausible chance that such an *avoidance*
> of wrapping would cause compile problems on any GCC-supported
> platforms?" I cannot see how, but I figure a sanity check won't hurt...
You mean, are there problems to expect if you leave the wrappers out
and use what the system has? It probably depends on the quality of
the system. There used to be quite some systems where the headers
were not appropriately protected and one had to include them in a
certain order. But these times are probably gone. If there are any
packages which install headers with this problem left then it is up to
the package maintainer to fix this. This is not the kind of problem
fixincludes is supposed to fix.
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------