bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ptrdiff_t check


From: Bruno Haible
Subject: ptrdiff_t check
Date: Sun, 11 Nov 2007 01:37:35 +0100
User-agent: KMail/1.5.4

For consistency between various macros needing ptrdiff_t.

(Since 2006-07-01, gnulib's stdint module is assuming a ptrdiff_t type.
But since gettext's intl.m4 is providing ptrdiff_t if the system lacks it,
we still don't know for sure whether all systems in use really have ptrdiff_t.)


2007-11-10  Bruno Haible  <address@hidden>

        * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
        ptrdiff_t as m4/intl.m4.

*** m4/vasnprintf.m4.orig       2007-11-11 01:35:24.000000000 +0100
--- m4/vasnprintf.m4    2007-11-11 01:32:33.000000000 +0100
***************
*** 1,4 ****
! # vasnprintf.m4 serial 22
  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,
--- 1,4 ----
! # 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,51 ****
    AC_REQUIRE([gt_TYPE_WCHAR_T])
    AC_REQUIRE([gt_TYPE_WINT_T])
    AC_REQUIRE([AC_TYPE_SIZE_T])
!   AC_CHECK_TYPES(ptrdiff_t)
    AC_REQUIRE([gt_AC_TYPE_INTMAX_T])
  ])
  
--- 45,54 ----
    AC_REQUIRE([gt_TYPE_WCHAR_T])
    AC_REQUIRE([gt_TYPE_WINT_T])
    AC_REQUIRE([AC_TYPE_SIZE_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])
  ])
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]