Nikos Mavrogiannopoulos <n...@redhat.com> writes:

> What about extending the macros in version.h with a simple to use
> combined version number?

I think I'd prefer to leave that out. The formatting is very arbitrary, and any
application which needs it can 

#define NETTLE_COMBINED_VERSION \
  ((NETTLE_VERSION_MAJOR << 16) + NETTLE_VERSION_MINOR).

or

#define NETTLE_AT_LEAST(major, minor) \
  ((NETTLE_VERSION_MAJOR << 16) + NETTLE_VERSION_MINOR \
   >= (((major) << 16) + (minor)))

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to