Align checks for ptrdiff_t.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Nov 2007 00:37:52 +0000 (01:37 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Nov 2007 00:37:52 +0000 (01:37 +0100)
ChangeLog
m4/vasnprintf.m4

index 1190f18..4a3c61d 100644 (file)
--- 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.
index ef39db6..6449a9c 100644 (file)
@@ -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_DEFUN([gl_PREREQ_PRINTF_PARSE],
   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])
 ])