This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc's limits.h vs POSIX
DJ Delorie <dj@redhat.com> writes:
> > provided that the system has its own <limits.h> detected at build
> > time.
>
> Ok, this part seems to be broken in my build. Apparently, this only
> works with --with-sysroot, as it does not look in the same directories
> as gcc itself looks in.
By default it looks in exactly one directory, SYSTEM_HEADER_DIR, which
in a native compiler is by default /usr/include. See LIMITS_H_TEST.
In t-djgpp this is set to $(DJDIR)/include. I don't know what sets
DJDIR.
Ian