This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
newlib's limits.h v. GCC's limits.h
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Mon, 20 Mar 2006 16:27:35 -0700
- Subject: newlib's limits.h v. GCC's limits.h
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
I have an issue where GCC's limits.h [1] is being included instead of
newlib's limits.h. newlib's limits.h defines PATH_MAX, but GCC's
limits.h does not. So I'm seeing a 'PATH_MAX' undeclared compiler
error. Which header file should be included, and how should PATH_MAX
be declared?
Thanks,
Shaun
[1] /usr/local/lib/gcc/i386-linux-newlib/4.1.0/include/limits.h
[2] /usr/local/i386-linux-newlib/include/limits.h