From dcc46cbccd1955fc6608c2febb218a6a233cc642 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 3 Apr 2007 09:03:51 +0200 Subject: [PATCH] configure/collectd.h: Undef unusable `NAN' from before defining our own. --- configure.in | 3 +++ src/collectd.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure.in b/configure.in index a085240b..5d346521 100644 --- a/configure.in +++ b/configure.in @@ -453,6 +453,9 @@ if test "x$nan_type" = "xnone"; then [[ #include #include +#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 e1ce97c1..3d44c515 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -113,6 +113,9 @@ /* #endif NAN_STATIC_ISOC */ #elif NAN_ZERO_ZERO # include +# ifdef NAN +# undef NAN +# endif # define NAN (0.0 / 0.0) # ifndef isnan # define isnan(f) ((f) != (f)) -- 2.30.2