changeset 14795:d62488163e76

timegm: Correct mktime replacement statements. * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of defining mktime as a C macro. This completes a 2009-07-28 commit.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 15:54:36 +0200
parents cf441162a7a1
children 5fcbe73883bf
files ChangeLog m4/timegm.m4
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	timegm: Correct mktime replacement statements.
+	* m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
+	defining mktime as a C macro. This completes a 2009-07-28 commit.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	timegm: Simplify autoconf macro.
--- a/m4/timegm.m4
+++ b/m4/timegm.m4
@@ -32,8 +32,7 @@
       [# mktime works but it doesn't export __mktime_internal,
        # so we need to substitute our own mktime implementation.
        AC_LIBOBJ([mktime])
-       AC_DEFINE([mktime], [rpl_mktime],
-         [Define to rpl_mktime if the replacement function should be used.])
+       REPLACE_MKTIME=1
        gl_PREREQ_MKTIME])
   fi
 ])