X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=include%2Fopenssl%2Fopensslv.h;h=420a1c96aaea9f9b4678ee33b11b35c225a59eba;hp=c6e15a5aa3e7ef64eb9a97e1e84843f7cf61301e;hb=3c5a61dd0f9d9a9eac098419bcaf47d1c296ca81;hpb=67c836e860c735cf1b039ef52973237fd26b74d6;ds=sidebyside diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h index c6e15a5aa3..420a1c96aa 100644 --- a/include/openssl/opensslv.h +++ b/include/openssl/opensslv.h @@ -42,6 +42,11 @@ extern "C" { # define OPENSSL_VERSION_NUMBER 0x10101000L # define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1-dev xx XXX xxxx" +#define OPENSSL_MAKE_VERSION(maj,min,fix,patch) ((0x10000000L)+((maj&0xff)<<20)+((min&0xff)<<12)+((fix&0xff)<<4)+patch) + +/* use this for #if tests, should never depend upon fix/patch */ +#define OPENSSL_VERSION_AT_LEAST(maj,min) (OPENSSL_MAKE_VERSION(maj,min, 0, 0) >= OPENSSL_VERSION_NUMBER) + /*- * The macros below are to be used for shared library (.so, .dll, ...) * versioning. That kind of versioning works a bit differently between