Mercurial > gnulib
annotate modules/truncl @ 40231:9b3c79fdfe0b
strtod: fix clash with strtold
Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
* lib/strtod.c (compute_minus_zero, minus_zero):
Simplify by remving the macro / external variable,
and having just a function. User changed. This avoids
the need for an external variable that might clash.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 11 Mar 2019 16:40:29 -0700 |
parents | 1f14c6dd175d |
children |
rev | line source |
---|---|
9287 | 1 Description: |
2 truncl() function: round towards zero. | |
3 | |
4 Files: | |
5 lib/truncl.c | |
6 lib/trunc.c | |
7 m4/truncl.m4 | |
8 | |
9 Depends-on: | |
10 math | |
11 extensions | |
15926
23d150bba2eb
truncl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents:
15009
diff
changeset
|
12 trunc [{ test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] |
23d150bba2eb
truncl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents:
15009
diff
changeset
|
13 float [{ test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
9287 | 14 |
15 configure.ac: | |
16 gl_FUNC_TRUNCL | |
15009
2917eb19f982
truncl: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
17 if test $HAVE_DECL_TRUNCL = 0 || test $REPLACE_TRUNCL = 1; then |
2917eb19f982
truncl: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
18 AC_LIBOBJ([truncl]) |
2917eb19f982
truncl: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14683
diff
changeset
|
19 fi |
9287 | 20 gl_MATH_MODULE_INDICATOR([truncl]) |
21 | |
22 Makefile.am: | |
23 | |
24 Include: | |
25 <math.h> | |
26 | |
27 Link: | |
28 $(TRUNCL_LIBM) | |
29 | |
30 License: | |
31 LGPL | |
32 | |
33 Maintainer: | |
17713
1f14c6dd175d
Bruno Haible has stepped down as maintainer.
Paul Eggert <eggert@cs.ucla.edu>
parents:
15926
diff
changeset
|
34 all |