Patch #6224.
* helpers.c: Don't need our own trunc function implementation
anymore, since we now use the one from gnulib.
* Smake: Add trunc to module list.
* configure.ac: Don't need to check for trunc function any longer.
+2007-10-12 Ben Pfaff <blp@gnu.org>
+
+ Use trunc module from gnulib instead of our home-grown solution.
+ Patch #6224.
+
+ * Smake: Add trunc to module list.
+
+ * configure.ac: Don't need to check for trunc function any longer.
+
2007-10-12 Ben Pfaff <blp@gnu.org>
Use fseeko module from gnulib instead of our home-grown solution.
strtoul \
sys_stat \
tmpfile \
+ trunc \
unistd \
unlocked-io \
vasprintf-posix \
AC_C_BIGENDIAN
-AC_CHECK_FUNCS([__setfpucw fork execl execlp isinf isnan finite getpid feholdexcept fpsetmask popen round trunc])
+AC_CHECK_FUNCS([__setfpucw fork execl execlp isinf isnan finite getpid feholdexcept fpsetmask popen round])
AC_PROG_LN_S
+2007-10-12 Ben Pfaff <blp@gnu.org>
+
+ Patch #6224.
+
+ * helpers.c: Don't need our own trunc function implementation
+ anymore, since we now use the one from gnulib.
+
2007-07-17 Ben Pfaff <blp@gnu.org>
Patch #19335. Reviewed by John Darrington.
DATE_SECONDS
};
-#ifndef HAVE_TRUNC
-/* Return X rounded toward zero. */
-static double
-trunc (double x)
-{
- return x >= 0.0 ? floor (x) : ceil (x);
-}
-#endif /* !HAVE_TRUNC */
-
/* Stores in *UNIT the unit whose name is NAME.
Return success. */
static enum date_unit