summaryrefslogtreecommitdiffstats
path: root/common/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/ring.h')
-rw-r--r--common/ring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/ring.h b/common/ring.h
index defa1eda..133aad03 100644
--- a/common/ring.h
+++ b/common/ring.h
@@ -19,6 +19,10 @@
#ifndef _H_RING2
#define _H_RING2
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct Ring RingItem;
typedef struct Ring {
RingItem *prev;
@@ -129,5 +133,9 @@ static inline RingItem *ring_prev(Ring *ring, RingItem *pos)
return (ret == ring) ? NULL : ret;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif