projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perl plugin: #undef macros before poisoning them.
[collectd.git]
/
src
/
collectd.h
diff --git
a/src/collectd.h
b/src/collectd.h
index
93d356e
..
7cb405c
100644
(file)
--- a/
src/collectd.h
+++ b/
src/collectd.h
@@
-97,6
+97,12
@@
# define assert(...) /* nop */
#endif
# 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*/
#if NAN_STATIC_DEFAULT
# include <math.h>
/* #endif NAN_STATIC_DEFAULT*/
@@
-252,7
+258,9
@@
# define COLLECTD_GRP_NAME "collectd"
#endif
# define COLLECTD_GRP_NAME "collectd"
#endif
-#define STATIC_ARRAY_LEN(array) (sizeof (array) / sizeof ((array)[0]))
+#ifndef COLLECTD_DEFAULT_INTERVAL
+# define COLLECTD_DEFAULT_INTERVAL 10.0
+#endif
/* Remove GNU specific __attribute__ settings when using another compiler */
#if !__GNUC__
/* Remove GNU specific __attribute__ settings when using another compiler */
#if !__GNUC__
@@
-279,8
+287,11
@@
# endif
#endif
# endif
#endif
-extern char hostname_g[];
-extern int interval_g;
-extern int timeout_g;
+/* Type for time as used by "utils_time.h" */
+typedef uint64_t cdtime_t;
+
+extern char hostname_g[];
+extern cdtime_t interval_g;
+extern int timeout_g;
#endif /* COLLECTD_H */
#endif /* COLLECTD_H */