X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Froundl.c;h=9cf81db4c1c0da21fc466c372ecf755f736d146b;hb=2895f9dcb663cc11cd70395c98442574bc5df5fd;hp=28f3f6f5c8e0a2cb4df59e1c3cfefcc36234f9c2;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/roundl.c b/lib/roundl.c index 28f3f6f5c..9cf81db4c 100644 --- a/lib/roundl.c +++ b/lib/roundl.c @@ -15,5 +15,22 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#define USE_LONG_DOUBLE -#include "round.c" +#include + +#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE + +/* Specification. */ +# include + +long double +roundl (long double x) +{ + return round (x); +} + +#else + +# define USE_LONG_DOUBLE +# include "round.c" + +#endif