summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69106cc)
raw | patch | inline | side by side (parent: 69106cc)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 3 Apr 2007 07:03:51 +0000 (09:03 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 3 Apr 2007 07:03:51 +0000 (09:03 +0200) |
configure.in | patch | blob | history | |
src/collectd.h | patch | blob | history |
diff --git a/configure.in b/configure.in
index a085240b16b14fec9a89e758435fe4f2aa2539ed..5d34652127a61ffb316aca28758fe4ac70f20dcb 100644 (file)
--- a/configure.in
+++ b/configure.in
[[
#include <stdlib.h>
#include <math.h>
+#ifdef NAN
+# undef NAN
+#endif
#define NAN (0.0 / 0.0)
#ifndef isnan
# define isnan(f) ((f) != (f))
diff --git a/src/collectd.h b/src/collectd.h
index e1ce97c1bf17cf13f2272dd56c45b306bd93d545..3d44c5157786ccbe94d923856d2897957a6e1a8b 100644 (file)
--- a/src/collectd.h
+++ b/src/collectd.h
/* #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))