aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-30 20:32:51 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-03-30 20:32:51 +0100
commit824e7e157a0ed2d5ca52159db4f1deacf0b39fa6 (patch)
treeb40b91f518e6e751ec557b8ce51888ae8df0202b
parentf93587a4c71ca8b85cfaa88daf5d64e5e5787403 (diff)
downloadtermo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.tar.gz
termo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.tar.xz
termo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.zip
Provide guarded extern "C" { ... } wrapper for C++ compilers
-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