configure/collectd.h: Undef unusable `NAN' from <math.h> before defining our own.
authorFlorian Forster <octo@huhu.verplant.org>
Tue, 3 Apr 2007 07:03:51 +0000 (09:03 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 3 Apr 2007 07:03:51 +0000 (09:03 +0200)
configure.in
src/collectd.h

index a085240..5d34652 100644 (file)
@@ -453,6 +453,9 @@ if test "x$nan_type" = "xnone"; then
       [[
 #include <stdlib.h>
 #include <math.h>
+#ifdef NAN
+# undef NAN
+#endif
 #define NAN (0.0 / 0.0)
 #ifndef isnan
 # define isnan(f) ((f) != (f))
index e1ce97c..3d44c51 100644 (file)
 /* #endif NAN_STATIC_ISOC */
 #elif NAN_ZERO_ZERO
 # include <math.h>
+# ifdef NAN
+#  undef NAN
+# endif
 # define NAN (0.0 / 0.0)
 # ifndef isnan
 #  define isnan(f) ((f) != (f))