From: Florian Forster Date: Sun, 27 Mar 2011 18:58:40 +0000 (-0700) Subject: src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type. X-Git-Tag: collectd-5.0.1~13 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=5f2db377613d8f9d586fcadad706345af1afdc37 src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type. --- diff --git a/src/collectd.h b/src/collectd.h index 8dd0f426..4079ad1f 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -97,6 +97,12 @@ # define assert(...) /* nop */ #endif +#if !defined(HAVE__BOOL) || !HAVE__BOOL +typedef int _Bool; +# undef HAVE__BOOL +# define HAVE__BOOL 1 +#endif + #if NAN_STATIC_DEFAULT # include /* #endif NAN_STATIC_DEFAULT*/