projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
330e584
)
src/collectd.h: Define "_Bool" to "int" if the C compiler doesn't know the type.
author
Florian Forster
<octo@collectd.org>
Sun, 27 Mar 2011 18:58:40 +0000
(11:58 -0700)
committer
Florian Forster
<octo@collectd.org>
Sun, 27 Mar 2011 18:58:40 +0000
(11:58 -0700)
src/collectd.h
patch
|
blob
|
history
diff --git
a/src/collectd.h
b/src/collectd.h
index
8dd0f42
..
4079ad1
100644
(file)
--- 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 <math.h>
/* #endif NAN_STATIC_DEFAULT*/