X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=3d8998fddbeab2f14f21cc0c6e98aef9bb4ad036;hb=be99a844a40d7037a910d37a894988b807631a6e;hp=5a039199730253d4633796d3697af3568c2927c2;hpb=cad58fa441765c7a3e8868a0938a3b221bb307cc;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 5a039199..3d8998fd 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