email plugin: Fix a segfault in the shutdown routine.
[collectd.git] / src / collectd.h
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))