summaryrefslogtreecommitdiff
path: root/lz.h
diff options
context:
space:
mode:
Diffstat (limited to 'lz.h')
-rw-r--r--lz.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lz.h b/lz.h
index 993609f..472e34d 100644
--- a/lz.h
+++ b/lz.h
@@ -10,6 +10,10 @@
#include "lz_config.h"
#include "draw.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void *LzContext;
typedef struct LzUsrContext LzUsrContext;
@@ -71,5 +75,8 @@ LzContext *lz_create(LzUsrContext *usr);
void lz_destroy(LzContext *lz);
+#ifdef __cplusplus
+}
+#endif
#endif // __LZ_H