X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftruncl.c;h=b95372cc59e23b1496c0bdf7e49d03245288a3f8;hb=a77413333408e54b8d6c4e19918098794cef4b4b;hp=aa0d40549c318999b2ca05143cd8cdf652da50f9;hpb=4b6dad7e35019625bd5eb30796beebac099a7422;p=gnulib.git diff --git a/lib/truncl.c b/lib/truncl.c index aa0d40549..b95372cc5 100644 --- a/lib/truncl.c +++ b/lib/truncl.c @@ -1,5 +1,5 @@ /* Round towards zero. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2013 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 "trunc.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +truncl (long double x) +{ + return trunc (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "trunc.c" + +#endif