src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type.
[collectd.git] / src / collectd.h
index 8dd0f42..4079ad1 100644 (file)
 # 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 <math.h>
 /* #endif NAN_STATIC_DEFAULT*/