From 824e7e157a0ed2d5ca52159db4f1deacf0b39fa6 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Wed, 30 Mar 2011 20:32:51 +0100 Subject: Provide guarded extern "C" { ... } wrapper for C++ compilers --- termkey.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3-70-g09d2