Mercurial > hg > octave-lyh > gnulib-hg
changeset 8830:abc2bcb16721
Support output of 64-bit numbers on mingw.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 18 May 2007 17:35:19 +0000 |
parents | ee226117aa23 |
children | d3f907c33d15 |
files | ChangeLog lib/vasnprintf.c |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-18 Bruno Haible <bruno@clisp.org> + + * lib/vasnprintf.m4 (VASNPRINTF) [WIN32]: Use %I64d instead of %lld + for printing 64-bit integers. Needed for mingw. + 2007-05-18 Bruno Haible <bruno@clisp.org> * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
--- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -1088,8 +1088,15 @@ #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: case TYPE_ULONGLONGINT: +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + *fbp++ = 'I'; + *fbp++ = '6'; + *fbp++ = '4'; + break; +# else *fbp++ = 'l'; /*FALLTHROUGH*/ +# endif #endif case TYPE_LONGINT: case TYPE_ULONGINT: