From: Vladimir Kotal Date: Mon, 22 Jul 2019 15:08:16 +0000 (+0200) Subject: enable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler X-Git-Tag: openssl-3.0.0-alpha1~1633 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a42cb4ba8aa74757b526af2cad2ac09b493df3fb;p=oweals%2Fopenssl.git enable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9434) --- diff --git a/include/openssl/macros.h b/include/openssl/macros.h index 6b735b6b0b..9b073fd790 100644 --- a/include/openssl/macros.h +++ b/include/openssl/macros.h @@ -33,6 +33,11 @@ # undef DECLARE_DEPRECATED # define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); # endif +# elif defined(__SUNPRO_C) +# if (__SUNPRO_C >= 0x5130) +# undef DECLARE_DEPRECATED +# define DECLARE_DEPRECATED(f) f __attribute__ ((deprecated)); +# endif # endif # endif