Joe Orton wrote: > On Sun, Jul 08, 2007 at 12:38:33AM -0300, Davi Arnaut wrote: >> I think we could improve the (autoconf) format detection by: >> >> 1) Using __builtin_types_compatible_p (available since gcc-3.1) > > This looks like a great idea. > >> 2) First checking if the ssize_t type size is equal to long size, which >> seems true on most systems. > > Not so sure I'd mess with this. At least 32-bit Linux really does use > an int for ssize_t. Ok. > But the most important thing here is that the qualifier used in the > format string really does match the integer size. Where int and long > are the same size, the effect of an incorrect %d or %ld choice is only a > compiler warning. Patch attached, looks good? -- Davi Arnaut