rint* tests: Avoid gcc warnings.
authorBruno Haible <bruno@clisp.org>
Sun, 22 Apr 2012 12:23:05 +0000 (14:23 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 22 Apr 2012 12:23:05 +0000 (14:23 +0200)
* tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
* tests/test-rintf.c (INFINITY, NAN): Likewise.
* tests/test-rintl.c (INFINITY, NAN): Likewise.

ChangeLog
tests/test-rint.c
tests/test-rintf.c
tests/test-rintl.c

index c99459a..bead9a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-04-22  Bruno Haible  <bruno@clisp.org>
 
+       rint* tests: Avoid gcc warnings.
+       * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
+       * tests/test-rintf.c (INFINITY, NAN): Likewise.
+       * tests/test-rintl.c (INFINITY, NAN): Likewise.
+
+2012-04-21  Bruno Haible  <bruno@clisp.org>
+
        users.txt: Update.
        * users.txt: Add freedink, wdiff. Update URLs for projects that have
        switched from CVS to git, bzr, or svn.
index 869a0a1..ce0b534 100644 (file)
@@ -32,6 +32,9 @@ SIGNATURE_CHECK (rint, double, (double));
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE double
 #define ISNAN isnand
 #define INFINITY Infinityd ()
index cd8951a..f22f83f 100644 (file)
@@ -32,6 +32,9 @@ SIGNATURE_CHECK (rintf, float, (float));
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE float
 #define ISNAN isnanf
 #define INFINITY Infinityf ()
index d7f8616..bed5756 100644 (file)
@@ -33,6 +33,9 @@ SIGNATURE_CHECK (rintl, long double, (long double));
 #include "nan.h"
 #include "macros.h"
 
+#undef INFINITY
+#undef NAN
+
 #define DOUBLE long double
 #define ISNAN isnanl
 #define INFINITY Infinityl ()