Code

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 8dd0f4263b55a1921ab5e105c354f37948226b20..4079ad1f2872c4d70aa708f0c523b3aed1f517fb 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*/