From: Florian Forster Date: Tue, 3 Apr 2007 07:03:51 +0000 (+0200) Subject: configure/collectd.h: Undef unusable `NAN' from before defining our own. X-Git-Tag: collectd-4.0.0~108^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dcc46cbccd1955fc6608c2febb218a6a233cc642;p=collectd.git configure/collectd.h: Undef unusable `NAN' from before defining our own. --- 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))