diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-02-02 13:01:55 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-02-02 13:12:48 -0800 |
commit | 2f6abcc9f5b2d31a6ea032e075fc923d3ed79b0a (patch) | |
tree | 6211c7da79c80f5a6b2d786f009073ea260103c3 /m4 | |
parent | edacea21caa814e54c5d2fbcc586341a937a33d0 (diff) | |
download | gnulib-2f6abcc9f5b2d31a6ea032e075fc923d3ed79b0a.tar.gz |
dtoastr,ftoastr,ldtoastr: port to c-strtod changes
Decouple these modules from c-strtod. Nowadays it’s reasonable to
assume the C99 signatures for strtod and strtold. Programs that
require stricter adherence to C99 should also use the strtod and
strtold modules as needed, and we no longer need the
HAVE_C99_STRTOLD macro.
* NEWS: Mention this.
* lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
* m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
* modules/dtoastr, modules/ftoastr, modules/ldtoastr:
(Files): Remove m4/c-strtod.m4.
(configure.ac): Do not require gl_C99_STRTOLD, which no longer
exists.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/c-strtod.m4 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/m4/c-strtod.m4 b/m4/c-strtod.m4 index 1d4b7f860c..58e9c40be2 100644 --- a/m4/c-strtod.m4 +++ b/m4/c-strtod.m4 @@ -1,4 +1,4 @@ -# c-strtod.m4 serial 17 +# c-strtod.m4 serial 18 # Copyright (C) 2004-2006, 2009-2019 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -47,7 +47,5 @@ AC_DEFUN([gl_C_STRTOLD], [ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gt_FUNC_USELOCALE]) - AC_DEFINE([HAVE_C99_STRTOLD], [1], - [Define to 1 because the gnulib 'strtold' module provides a C99-conforming strtold function.]) AC_CHECK_FUNCS([strtold_l]) ]) |