Code

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 a085240b16b14fec9a89e758435fe4f2aa2539ed..5d34652127a61ffb316aca28758fe4ac70f20dcb 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 e1ce97c1bf17cf13f2272dd56c45b306bd93d545..3d44c5157786ccbe94d923856d2897957a6e1a8b 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))