[PATCH:x11proto] Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler

Alan Coopersmith alan.coopersmith at oracle.com
Fri May 23 18:31:25 PDT 2014


Support for this attribute is added in the 12.4 beta release.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 Xfuncproto.h.in |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
-- 
1.7.9.2



More information about the xorg-devel mailing list