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 */