summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Kotal <vladimir.kotal@oracle.com>2019-07-22 17:08:16 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-12 12:46:55 +0200
commita42cb4ba8aa74757b526af2cad2ac09b493df3fb (patch)
tree59b3d0721b6d9344ec8ae76bce14f9772f415b35 /include
parent853094dbe15a49b334f3488fc99a557abf021c09 (diff)
enable DECLARE_DEPRECATED macro for Oracle Developer Studio compiler
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9434)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/macros.h5
1 files changed, 5 insertions, 0 deletions
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