summaryrefslogtreecommitdiff
path: root/common/sw_canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/sw_canvas.h')
-rw-r--r--common/sw_canvas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/sw_canvas.h b/common/sw_canvas.h
index 99deac8..42f2573 100644
--- a/common/sw_canvas.h
+++ b/common/sw_canvas.h
@@ -26,6 +26,10 @@
#include "canvas_base.h"
#include "region.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
SpiceCanvas *canvas_create(int width, int height, uint32_t format
#ifdef SW_CANVAS_CACHE
, SpiceImageCache *bits_cache
@@ -55,4 +59,8 @@ SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint
void sw_canvas_init();
+#ifdef __cplusplus
+}
+#endif
+
#endif