Mercurial > hg > octave-lyh > gnulib-hg
changeset 9464:b875c172343f
Align checks for ptrdiff_t.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 11 Nov 2007 01:37:52 +0100 |
parents | 1388aa25dd3d |
children | 4a3319c82e39 |
files | ChangeLog m4/vasnprintf.m4 |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-10 Bruno Haible <bruno@clisp.org> + + * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for + ptrdiff_t as m4/intl.m4. + 2007-11-10 Jim Meyering <meyering@redhat.com> Avoid link failure for the argmatch test.
--- a/m4/vasnprintf.m4 +++ b/m4/vasnprintf.m4 @@ -1,4 +1,4 @@ -# vasnprintf.m4 serial 22 +# vasnprintf.m4 serial 23 dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -45,7 +45,10 @@ AC_REQUIRE([gt_TYPE_WCHAR_T]) AC_REQUIRE([gt_TYPE_WINT_T]) AC_REQUIRE([AC_TYPE_SIZE_T]) - AC_CHECK_TYPES(ptrdiff_t) + AC_CHECK_TYPE([ptrdiff_t], , + [AC_DEFINE([ptrdiff_t], [long], + [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) + ]) AC_REQUIRE([gt_AC_TYPE_INTMAX_T]) ])