Subject: Re: Preprocessor...

Re: Preprocessor...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 1 Mar 2010 22:19:59 +0100 (CET)

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
Received on 2010-03-01