Merge branch 'pull/collectd-4' into collectd-4
authorFlorian Forster <octo@huhu.verplant.org>
Tue, 3 Apr 2007 07:04:17 +0000 (09:04 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 3 Apr 2007 07:04:17 +0000 (09:04 +0200)
configure.in
src/collectd.h

index 3636675..5166ad1 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))