X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fceill.c;h=c5ca2fb4000fc7a94cbd0bb0f6b6e00973d087b5;hb=refs%2Ftags%2Fdebian%2F20140202%2Bstable-1;hp=b55265b4e9e179d0e027ed744e4e9904370300d8;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/ceill.c b/lib/ceill.c index b55265b4e..c5ca2fb40 100644 --- a/lib/ceill.c +++ b/lib/ceill.c @@ -1,5 +1,5 @@ /* Round towards positive infinity. - Copyright (C) 2007, 2009, 2010 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