• Paul Eggert's avatar
    gnulib: import mktime and move-if-change fixes from gnulib · 3de84ad9
    Paul Eggert authored
    * configure: Regenerate from the following.
    
    2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
    
    mktime: clarify long_int width checking
    * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
    the top level, to make it clearer that the assumption about
    long_int width is being checked.  See
    <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
    
    2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
    
    TYPE_MAXIMUM: avoid theoretically undefined behavior
    * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
    negative number, which the C Standard says has undefined behavior.
    In practice this is not a problem, but might as well do it by the book.
    Reported by Rich Felker and Eric Blake; see
    <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
    * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
    * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
    
    mktime: #undef mktime before #defining it
    * lib/mktime.c (mktime) [DEB...
    3de84ad9
mktime.m4 6.37 KB