libssh: supress warnings without version check

Define unconditionally.

Follow-up from d21bd2190c

Closes #12523
This commit is contained in:
Daniel Stenberg 2023-12-14 23:07:24 +01:00
parent 907dce2dc0
commit 78a1814b33
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -32,10 +32,7 @@
#include <limits.h>
/* in 0.10.0 or later, ignore deprecated warnings */
#include <libssh/libssh_version.h>
#if (LIBSSH_VERSION_MINOR >= 10) || (LIBSSH_VERSION_MAJOR > 0)
#define SSH_SUPPRESS_DEPRECATED
#endif
#include <libssh/libssh.h>
#include <libssh/sftp.h>