X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd.h;h=3d8998fddbeab2f14f21cc0c6e98aef9bb4ad036;hb=7e504c50768c77d78003e1e27afe6f9f81a85b85;hp=18052ba3980130caa048b3b5768de5915c0f9f93;hpb=b423bd090e6a1af51446ad6967d5016045bd6ea5;p=collectd.git diff --git a/src/collectd.h b/src/collectd.h index 18052ba3..3d8998fd 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -58,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