truncl: Simplify for platforms where 'long double' == 'double'.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 23:05:53 +0000 (01:05 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 23:05:53 +0000 (01:05 +0200)
commit3d57d93ced65ddec292e320e35fb648dff34cd83
treeb41573a7f33613254a8949a5152bbbab1e5c80b5
parent1ac9a623b07722e14367dac9284372881aae3934
truncl: Simplify for platforms where 'long double' == 'double'.

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