aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--termkey.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/termkey.h.in b/termkey.h.in
index 4cfa69d..fe30421 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -1,3 +1,7 @@
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef GUARD_TERMKEY_H_
#define GUARD_TERMKEY_H_
@@ -197,3 +201,7 @@ typedef TermKeyKey termkey_key;
typedef TermKey termkey_t;
#endif
+
+#ifdef __cplusplus
+}
+#endif