Module: check_mk
Branch: master
Commit: 14b21e22f8e6489811db863851fb16b21582427e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14b21e22f8e648…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Oct 26 10:27:16 2015 +0100
Make global_counters.h easily usable both from C and C++.
---
livestatus/src/global_counters.h | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/global_counters.h b/livestatus/src/global_counters.h
index 9f1e0b6..055f21a 100644
--- a/livestatus/src/global_counters.h
+++ b/livestatus/src/global_counters.h
@@ -29,6 +29,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef EXTERN
# define EXTERN extern
#endif
@@ -54,5 +58,8 @@ EXTERN double g_counter_rate[NUM_COUNTERS];
void do_statistics();
-#endif // global_counters_h
+#ifdef __cplusplus
+}
+#endif
+#endif /* global_counters_h */