From: Tobias Brunner Date: Thu, 11 Oct 2018 16:57:00 +0000 (+0200) Subject: libvici: Wrap header in extern "C" to include it from C++ X-Git-Tag: 5.7.2dr1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f18945dfea5d12566aa010513a8fa584910a5e26;p=thirdparty%2Fstrongswan.git libvici: Wrap header in extern "C" to include it from C++ Fixes #2795. --- diff --git a/src/libcharon/plugins/vici/libvici.h b/src/libcharon/plugins/vici/libvici.h index d695978810..964752f53d 100644 --- a/src/libcharon/plugins/vici/libvici.h +++ b/src/libcharon/plugins/vici/libvici.h @@ -86,6 +86,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** * Opaque vici connection contex. */ @@ -465,4 +469,8 @@ void vici_init(); */ void vici_deinit(); +#ifdef __cplusplus +} +#endif + #endif /** LIBVICI_H_ @}*/