diff options
Diffstat (limited to 'ring.h')
-rw-r--r-- | ring.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |