X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=e7fc4e3554f4c0c0ea90403994af186e11d4cf56;hb=171d6a4bd5e05b56be83860701d35bfe1373d6a7;hp=5a039199730253d4633796d3697af3568c2927c2;hpb=085a993e0f187ad73d3a28cea508ec6e56c39516;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 5a039199..e7fc4e35 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -26,11 +26,6 @@ # include "config.h" #endif -/* Set to C99 and POSIX code */ -#if COLLECT_STANDARDS -# include "standards.h" -#endif /* COLLECT_STANDARDS */ - #include #if HAVE_SYS_TYPES_H # include @@ -63,6 +58,18 @@ #endif #if HAVE_STDBOOL_H # include +#else +# ifndef HAVE__BOOL +# ifdef __cplusplus +typedef bool _Bool; +# else +# define _Bool signed char +# endif +# endif +# define bool _Bool +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 #endif #if HAVE_UNISTD_H # include @@ -128,6 +135,12 @@ # 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 @@ -214,10 +227,6 @@ # include #endif -#if HAVE_SENSORS_SENSORS_H -# include -#endif - #ifndef PACKAGE_NAME #define PACKAGE_NAME "collectd" #endif @@ -287,5 +296,6 @@ extern char hostname_g[]; extern int interval_g; +extern int timeout_g; #endif /* COLLECTD_H */