roundl: Simplify for platforms where 'long double' == 'double'.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 23:07:15 +0000 (01:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 23:07:15 +0000 (01:07 +0200)
commita25368f150046137109aa8cf58cb85dc6bc234b5
treecf3ec92bb311aadec2a61310e70a04855ab52136
parent3d57d93ced65ddec292e320e35fb648dff34cd83
roundl: Simplify for platforms where 'long double' == 'double'.

* lib/roundl.c: Include <config.h>.
(roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
* lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
time.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
* modules/roundl (Depends-on): Add round. Update conditions.
ChangeLog
lib/round.c
lib/roundl.c
m4/roundl.m4
modules/roundl