On Mon, 1 Mar 2010, double wrote:

#if LIBSSH2_VERSION_MAJOR == 1 && LIBSSH2_VERSION_MINOR <= 2 && LIBSSH2_VERSION_PATCH <= 2
#define LIBSSH2_BUFFERSIZE      1024
#endif

There's a much easier way. We have the LIBSSH2_VERSION_NUM define that lets you do simple comparisons like this:

#if LIBSSH2_VERSION_NUM >= 0x010203 /* later or equal than 1.2.3 */

--

 / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to