X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffloorl.c;h=aa62294b921c99ba39bcb8f4de1067fe6cbee70e;hb=4662b82a3d9015359bb7a75bc95ecf2f57f841e1;hp=b703d90c465c39c0dd66c9386cccb54a11357855;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/floorl.c b/lib/floorl.c index b703d90c4..aa62294b9 100644 --- a/lib/floorl.c +++ b/lib/floorl.c @@ -1,5 +1,5 @@ /* Round towards negative infinity. - Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,5 +16,22 @@ /* Written by Bruno Haible , 2007. */ -#define USE_LONG_DOUBLE -#include "floor.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +floorl (long double x) +{ + return floor (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "floor.c" + +#endif