summaryrefslogtreecommitdiffstats
path: root/common/mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/mem.h')
-rw-r--r--common/mem.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/mem.h b/common/mem.h
index 797bba0a..e5937fd8 100644
--- a/common/mem.h
+++ b/common/mem.h
@@ -22,6 +22,10 @@
#include <stdlib.h>
#include <spice/macros.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct SpiceChunk {
uint8_t *data;
uint32_t len;
@@ -120,4 +124,8 @@ void spice_buffer_append(SpiceBuffer *buffer, const void *data, size_t len);
size_t spice_buffer_copy(SpiceBuffer *buffer, void *dest, size_t len);
size_t spice_buffer_remove(SpiceBuffer *buffer, size_t len);
+#ifdef __cplusplus
+}
+#endif
+
#endif