summaryrefslogtreecommitdiff
path: root/common/draw.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/draw.h')
-rw-r--r--common/draw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/draw.h b/common/draw.h
index cb15672..793169f 100644
--- a/common/draw.h
+++ b/common/draw.h
@@ -35,6 +35,10 @@
#include <spice/enums.h>
#include "mem.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SPICE_GET_ADDRESS(addr) ((void *)(unsigned long)(addr))
#define SPICE_SET_ADDRESS(addr, val) ((addr) = (unsigned long)(val))
@@ -270,4 +274,8 @@ typedef struct SpiceCursorHeader {
uint16_t hot_spot_y;
} SpiceCursorHeader;
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _H_SPICE_DRAW */