X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fopenssl%2Fopensslconf.h.in;h=bc98cad51a64c23de1d81d932c2839dbe491072e;hb=edfd50d8db3ae20c1cba1667f861a25cbe6c31f2;hp=b793d482c7eec9783fa714bc6c12313d7f8494c1;hpb=4431107d6c430950c2c2e19c03b8dff6355ccfdb;p=oweals%2Fopenssl.git diff --git a/include/openssl/opensslconf.h.in b/include/openssl/opensslconf.h.in index b793d482c7..bc98cad51a 100644 --- a/include/openssl/opensslconf.h.in +++ b/include/openssl/opensslconf.h.in @@ -9,6 +9,8 @@ * https://www.openssl.org/source/license.html */ +#include + #ifdef __cplusplus extern "C" { #endif @@ -97,7 +99,13 @@ extern "C" { # define OPENSSL_API_COMPAT OPENSSL_MIN_API #endif -#if OPENSSL_API_COMPAT < 0x10200000L +/* + * Do not deprecate things to be deprecated in version 1.2.0 before the + * OpenSSL version number matches. + */ +#if OPENSSL_VERSION_NUMBER < 0x10200000L +# define DEPRECATEDIN_1_2_0(f) f; +#elif OPENSSL_API_COMPAT < 0x10200000L # define DEPRECATEDIN_1_2_0(f) DECLARE_DEPRECATED(f) #else # define DEPRECATEDIN_1_2_0(f)