summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-09 19:23:58 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-05-09 19:23:58 -0700
commit068fd2cb19b6c0434f63b427158506e2ec3c6206 (patch)
tree757d72f5d9422c8743c22d1cca9f832f98f0512e
parent03cbbf6c3e811c026c86e3a60d2f9af56606e155 (diff)
Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler
Support for this attribute is added in the 12.4 beta release. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Xfuncproto.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index dac9229..608728f 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -116,7 +116,8 @@ in this Software without prior written authorization from The Open Group.
#endif
/* Added in X11R6.9, so available in any version of modular xproto */
-#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)
+#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)) \
+ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5130))
# define _X_DEPRECATED __attribute__((deprecated))
#else /* not gcc >= 3.1 */
# define _X_DEPRECATED