This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: need info on __need_ usage
Bruce Korb <bkorb@cruzio.com> writes:
> > Only if you don't handle headers in the bits subdir. <math.h> and
> > <complex.h> use multi-inclusion for other things.
>
> How do I detect that?
You'll have to hardcode it (look at a system with glibc). But I'll
not promise that there won't be more such headers in future.
> I want to detect multi-inclusion so that the wrap function will know
> when to leave out the wrapping. (That function will also put fixed
> strings at the start and/or end of a file.
There is no fixed formula for that. The best you can hope for is
hardcoding the file names.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------