summaryrefslogtreecommitdiff
path: root/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'ring.h')
-rw-r--r--ring.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ring.h b/ring.h
index a013a2f..ff4ef6d 100644
--- a/ring.h
+++ b/ring.h
@@ -21,6 +21,10 @@
#include "spice_common.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct Ring RingItem;
typedef struct Ring {
RingItem *prev;
@@ -150,5 +154,9 @@ static inline RingItem *ring_prev(Ring *ring, RingItem *pos)
(var) = ring_prev(ring, var))
+#ifdef __cplusplus
+}
+#endif
+
#endif