summaryrefslogtreecommitdiff
path: root/lib/round.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-25 02:58:27 +0100
committerBruno Haible <bruno@clisp.org>2010-12-25 02:58:27 +0100
commit995bd0764ebf4b386fca98ef660f651b25cbd8a7 (patch)
tree1390f4d2064db8da53fd2678d68218749b281ffa /lib/round.c
parent8adcd54692035f540e66b914b9f802efb5c1da95 (diff)
downloadgnulib-995bd0764ebf4b386fca98ef660f651b25cbd8a7.tar.gz
ceil, trunc, round: Fix gcc warnings.
* lib/ceil.c (MIN): Undefine before redefining. * lib/trunc.c (MIN): Likewise. * lib/round.c (MIN): Likewise. Include <math.h> first.
Diffstat (limited to 'lib/round.c')
-rw-r--r--lib/round.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/round.c b/lib/round.c
index 07ec4cdf8c..df56266cd5 100644
--- a/lib/round.c
+++ b/lib/round.c
@@ -20,9 +20,13 @@
#include <config.h>
-#include <float.h>
+/* Specification. */
#include <math.h>
+#include <float.h>
+
+#undef MIN
+
#ifdef USE_LONG_DOUBLE
# define ROUND roundl
# define FLOOR floorl