Mercurial > gftp.yaz
diff acinclude.m4 @ 532:bccfdbfaac00
2004-8-17 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c -
added #defines for encoding and decoding file sizes that will work
properly for large files (GFTP_OFF_T_HEX_PRINTF_MOD,
GFTP_OFF_T_INTL_PRINTF_MOD, GFTP_OFF_T_PRINTF_MOD,
GFTP_OFF_T_11PRINTF_MOD and gftp_parse_file_size). Fixed file size
not being displayed properly when the system does not support the '
printf formatter
* acinclude.m4 (AC_INTL_PRINTF) - check to see if _LARGEFILE_SOURCE
is defined. If so, use %'lld instead of %'ld
author | masneyb |
---|---|
date | Wed, 18 Aug 2004 01:58:43 +0000 |
parents | eb6dafc07f42 |
children |
line wrap: on
line diff
--- a/acinclude.m4 Wed Aug 18 00:56:58 2004 +0000 +++ b/acinclude.m4 Wed Aug 18 01:58:43 2004 +0000 @@ -28,7 +28,11 @@ int main(void) { char buf[20]; +#if defined (_LARGEFILE_SOURCE) + sprintf (buf, "%'lld", (long) 1); +#else sprintf (buf, "%'ld", (long) 1); +#endif if (strchr (buf, '1') == NULL) return (1); return (0);