From 722470994affba0dea3aa11a2979db16bcd741d4 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Tue, 4 Oct 2005 04:25:24 +0000 Subject: [PATCH] Added missing '#ifdef __cplusplus extern "C" {}' stanza --- include/libssh2_sftp.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/libssh2_sftp.h b/include/libssh2_sftp.h index b23bbb2..e950fbf 100644 --- a/include/libssh2_sftp.h +++ b/include/libssh2_sftp.h @@ -38,6 +38,10 @@ #ifndef LIBSSH2_SFTP_H #define LIBSSH2_SFTP_H 1 +#ifdef __cplusplus +extern "C" { +#endif + /* Note: Version 6 was documented at the time of writing * However it was marked as "DO NOT IMPLEMENT" due to pending changes * @@ -187,4 +191,8 @@ LIBSSH2_API int libssh2_sftp_symlink_ex(LIBSSH2_SFTP *sftp, const char *path, in #define libssh2_sftp_readlink(sftp, path, target, maxlen) libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), LIBSSH2_SFTP_READLINK) #define libssh2_sftp_realpath(sftp, path, target, maxlen) libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), LIBSSH2_SFTP_REALPATH) +#ifdef __cplusplus +} /* extern "C" */ +#endif + #endif /* LIBSSH2_SFTP_H */