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

Alan Coopersmith alan.coopersmith at oracle.com
Fri May 23 18:30:00 PDT 2014


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

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 include/pciaccess.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/pciaccess.h b/include/pciaccess.h
index 22faf89..cd87dbb 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -59,7 +59,7 @@
 
 #include <inttypes.h>
 
-#if __GNUC__ >= 3
+#if (__GNUC__ >= 3) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5130))
 #define __deprecated __attribute__((deprecated))
 #else
 #define __deprecated
-- 
1.7.9.2



More information about the xorg-devel mailing list