On Mon, Sep 04, 2006 at 12:01:13PM +0000, Joseph S. Myers wrote:
Andrew Pinski <pinskia@physics.uc.edu> writes:
On Sun, 2006-09-03 at 21:55 -0700, Mark Mitchell wrote:
+#include <inttypes.h>
Semi offtopic but isn't it better to include stdtypes.h unless you need
ITYM stdint.h.
The practical portability matter is that inttypes.h is more widespread
than stdint.h because of systems that implemented early C9X drafts with
inttypes.h but not stdint.h. In any case, the include should go in
system.h, which probably does need to use the autoconf support for
generating such a header if not present.
In principle GCC should provide <stdint.h>, bug 448, but that only solves
the problem for the target and not for the host.
And for the host, Andrew is correct: GCC_HEADER_STDINT(gstdint.h) in
configure.ac will generate a usable stdint.h replacement.