From 0e5eb4d9c5c646ec04a90fc11bcfa15f768832d0 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Mon, 20 Jun 2005 05:17:51 +0000 Subject: [PATCH] Added extern "C" declaration for C++ compatibility --- include/libssh2.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/libssh2.h b/include/libssh2.h index d6d4616..a7dffce 100644 --- a/include/libssh2.h +++ b/include/libssh2.h @@ -38,6 +38,10 @@ #ifndef LIBSSH2_H #define LIBSSH2_H 1 +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -384,4 +388,8 @@ LIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_send_ex(LIBSSH2_SESSION *session, const LIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest, int *dest_len, char *src, int src_len); +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* LIBSSH2_H */