X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Froundl.c;h=408d5510631d8b688514b64a56595d83cee0b7d4;hb=f62a2da1390a78aebe7dcbc5753ba7a2b34cf1fd;hp=28f3f6f5c8e0a2cb4df59e1c3cfefcc36234f9c2;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git
diff --git a/lib/roundl.c b/lib/roundl.c
index 28f3f6f5c..408d55106 100644
--- a/lib/roundl.c
+++ b/lib/roundl.c
@@ -1,5 +1,5 @@
/* Round toward nearest, breaking ties away from zero.
- Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2012 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
@@ -12,8 +12,24 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ with this program; if not, see . */
-#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