summaryrefslogtreecommitdiff
path: root/lib/event_counter.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/event_counter.h')
-rw-r--r--lib/event_counter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/event_counter.h b/lib/event_counter.h
index de5dbc0665..8ae276ffef 100644
--- a/lib/event_counter.h
+++ b/lib/event_counter.h
@@ -43,6 +43,10 @@
#ifndef _ZEBRA_EVENT_COUNTER_H
#define _ZEBRA_EVENT_COUNTER_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct event_counter {
unsigned long long count;
time_t last;
@@ -51,4 +55,8 @@ struct event_counter {
void event_counter_inc(struct event_counter *counter);
const char *event_counter_format(const struct event_counter *counter);
+#ifdef __cplusplus
+}
+#endif
+
#endif