diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-30 20:32:51 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-03-30 20:32:51 +0100 |
commit | 824e7e157a0ed2d5ca52159db4f1deacf0b39fa6 (patch) | |
tree | b40b91f518e6e751ec557b8ce51888ae8df0202b | |
parent | f93587a4c71ca8b85cfaa88daf5d64e5e5787403 (diff) | |
download | termo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.tar.gz termo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.tar.xz termo-824e7e157a0ed2d5ca52159db4f1deacf0b39fa6.zip |
Provide guarded extern "C" { ... } wrapper for C++ compilers
-rw-r--r-- | termkey.h.in | 8 |
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 |