summaryrefslogtreecommitdiffstats
path: root/common/glc.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/glc.h')
-rw-r--r--common/glc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/glc.h b/common/glc.h
index a6b8579a..d77f003f 100644
--- a/common/glc.h
+++ b/common/glc.h
@@ -23,6 +23,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void * GLCCtx;
typedef void * GLCPattern;
typedef void * GLCPath;
@@ -156,4 +160,8 @@ void glc_clear(GLCCtx glc);
GLCCtx glc_create(int width, int height);
void glc_destroy(GLCCtx glc, int textures_lost);
+#ifdef __cplusplus
+}
+#endif
+
#endif