X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=e7fc4e3554f4c0c0ea90403994af186e11d4cf56;hb=096f706caf5718c11b3e8a7ad9ecb84f05482c4d;hp=3d8998fddbeab2f14f21cc0c6e98aef9bb4ad036;hpb=108068f268cad453e5d3b54e288917409db1e467;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 3d8998fd..e7fc4e35 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -135,6 +135,12 @@ typedef bool _Bool; # ifndef isnan # define isnan(f) ((f) != (f)) # endif /* !defined(isnan) */ +# ifndef isfinite +# define isfinite(f) (((f) - (f)) == 0.0) +# endif +# ifndef isinf +# define isinf(f) (!isfinite(f) && !isnan(f)) +# endif #endif /* NAN_ZERO_ZERO */ /* Try really, really hard to determine endianess. Under NexentaStor 1.0.2 this @@ -221,10 +227,6 @@ typedef bool _Bool; # include #endif -#if HAVE_SENSORS_SENSORS_H -# include -#endif - #ifndef PACKAGE_NAME #define PACKAGE_NAME "collectd" #endif @@ -294,5 +296,6 @@ typedef bool _Bool; extern char hostname_g[]; extern int interval_g; +extern int timeout_g; #endif /* COLLECTD_H */