src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type.
authorFlorian Forster <octo@collectd.org>
Sun, 27 Mar 2011 18:58:40 +0000 (11:58 -0700)
committerFlorian Forster <octo@collectd.org>
Sun, 27 Mar 2011 18:58:40 +0000 (11:58 -0700)
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*/