On Tue, Nov 08, 2005 at 01:44:57PM +0100, jens m. noedler wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi neon folks,
> 
> I would like my code to be compatible to neon 0.24.x and 0.25.x.
> Therefore I'd like to use the C-preprocessor with something like:
> 
> #if (NE_VERSION_MINOR > 24)
>       if (ne_has_support(NE_FEATURE_SSL)) {
> #else
>       if (ne_supports_ssl()) {
> #endif
> 
> For this I can't use ne_version_match() because it's evaluated at
> compile time and would cause an error. And NE_VERSION_MAJOR and
> NE_VERSION_MINOR are not exported.

You can determine them at configure-time, the neon.m4 macros do this for 
example.  But simpler tricks will also work e.g.

#if defined(NE_FEATURE_SSL)
 /* presume neon >= 0.25.x. */
#else
 /* not */
#endif

joe
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to