floorl: Simplify for platforms where 'long double' == 'double'.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 22:29:05 +0000 (00:29 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2011 22:59:52 +0000 (00:59 +0200)
commita2d812ba0a63e309653f803b15dabc1e904effcb
treefa66ef3b3cb00a5368e1938f5dc789a948074cd6
parent3c7d5d0cf885baa9add1cd34364fa1adfc459630
floorl: Simplify for platforms where 'long double' == 'double'.

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