summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Kotal <vladimir.kotal@oracle.com>2019-08-12 14:02:52 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-06-04 16:43:46 +0200
commit8354f53d40781630eb4caa1a2ce31eca5296aa29 (patch)
tree088af0a58d60303b44b12313b1029f34f51e9890 /include
parente6a80cbad28ee748830815634917efe96948f2f3 (diff)
enable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/9575)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/opensslconf.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/opensslconf.h.in b/include/openssl/opensslconf.h.in
index bc98cad51a..ee40809aed 100644
--- a/include/openssl/opensslconf.h.in
+++ b/include/openssl/opensslconf.h.in
@@ -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