summaryrefslogtreecommitdiffstats
path: root/common/gl_canvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/gl_canvas.h')
-rw-r--r--common/gl_canvas.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common/gl_canvas.h b/common/gl_canvas.h
index d7125e60..4a156689 100644
--- a/common/gl_canvas.h
+++ b/common/gl_canvas.h
@@ -20,6 +20,13 @@
#include "canvas_base.h"
#include "region.h"
+#ifndef _H__GL_CANVAS
+#define _H__GL_CANVAS
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
SpiceCanvas *gl_canvas_create(int width, int height, uint32_t format
#ifdef SW_CANVAS_CACHE
, SpiceImageCache *bits_cache
@@ -35,3 +42,8 @@ SpiceCanvas *gl_canvas_create(int width, int height, uint32_t format
void gl_canvas_set_textures_lost(SpiceCanvas *canvas, int textures_lost);
void gl_canvas_init();
+#ifdef __cplusplus
+}
+#endif
+
+#endif