summaryrefslogtreecommitdiff
path: root/coro.h
diff options
context:
space:
mode:
Diffstat (limited to 'coro.h')
-rw-r--r--coro.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/coro.h b/coro.h
index 7f30150..078a16b 100644
--- a/coro.h
+++ b/coro.h
@@ -74,6 +74,10 @@
#ifndef CORO_H
#define CORO_H
+#if __cplusplus
+extern "C" {
+#endif
+
#define CORO_VERSION 2
/*
@@ -291,5 +295,9 @@ void coro_destroy (coro_context *ctx);
#endif
+#if __cplusplus
+}
+#endif
+
#endif