X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fceill.c;h=c5ca2fb4000fc7a94cbd0bb0f6b6e00973d087b5;hb=refs%2Ftags%2Fdebian%2F20140202%2Bstable-1;hp=54a4b50c59c5284d832e66ab0ec4187e58338aaa;hpb=4b6dad7e35019625bd5eb30796beebac099a7422;p=gnulib.git diff --git a/lib/ceill.c b/lib/ceill.c index 54a4b50c5..c5ca2fb40 100644 --- a/lib/ceill.c +++ b/lib/ceill.c @@ -1,5 +1,5 @@ /* Round towards positive infinity. - Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2014 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 "ceil.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +ceill (long double x) +{ + return ceil (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "ceil.c" + +#endif