summaryrefslogtreecommitdiff
path: root/lib/ringbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ringbuf.h')
-rw-r--r--lib/ringbuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ringbuf.h b/lib/ringbuf.h
index 15049e3eea..b8f4d9798d 100644
--- a/lib/ringbuf.h
+++ b/lib/ringbuf.h
@@ -25,6 +25,10 @@
#include "memory.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct ringbuf {
size_t size;
ssize_t start;
@@ -122,4 +126,8 @@ void ringbuf_reset(struct ringbuf *buf);
*/
void ringbuf_wipe(struct ringbuf *buf);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _FRR_RINGBUF_H_ */