enable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler
authorVladimir Kotal <vladimir.kotal@oracle.com>
Mon, 12 Aug 2019 12:02:52 +0000 (14:02 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 4 Jun 2020 14:43:46 +0000 (16:43 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/9575)

CHANGES
include/openssl/opensslconf.h.in

diff --git a/CHANGES b/CHANGES
index 228408d9f053a7d6e84cc3b5a1a2c779168d4d98..8b2fd3f8bdd79a216988d473fb6ac49379d732e7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -9,7 +9,7 @@
 
  Changes between 1.1.1g and 1.1.1h [xx XXX xxxx]
 
-  *)
+  *) The Oracle Developer Studio compiler will start reporting deprecated APIs
 
  Changes between 1.1.1f and 1.1.1g [21 Apr 2020]
 
index bc98cad51a64c23de1d81d932c2839dbe491072e..ee40809aed05d56d5f98a6531d6b5290180e8cc7 100644 (file)
@@ -77,6 +77,11 @@ extern "C" {
 #   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