diff modules/ftoastr @ 13878:f120aacf676a

ftoastr: port to hosts lacking strtof and strtold Problem reported by Bruno Haible in <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>. * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99 environment and strtold (and presumably strtof) are not available. * modules/ftoastr (Files): Add m4/c-strtod.m4. (configure.ac): Require gl_C99_STRTOLD.
author Paul Eggert <eggert@cs.ucla.edu>
date Thu, 18 Nov 2010 17:31:52 -0800 (2010-11-19)
parents ae9b5d5d4e18
children 608c8fdccab5
line wrap: on
line diff
--- a/modules/ftoastr
+++ b/modules/ftoastr
@@ -6,11 +6,13 @@
 lib/ftoastr.c
 lib/dtoastr.c
 lib/ldtoastr.c
+m4/c-strtod.m4
 
 Depends-on:
 intprops
 
 configure.ac:
+AC_REQUIRE([gl_C99_STRTOLD])
 
 Makefile.am:
 lib_SOURCES += ftoastr.h ftoastr.c dtoastr.c ldtoastr.c