OSDN Git Service

Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 10 May 2014 02:25:10 +0000 (19:25 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 31 May 2014 22:17:41 +0000 (15:17 -0700)
Support for this attribute is added in the 12.4 beta release.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
include/pciaccess.h

index 22faf89..1d7aa4b 100644 (file)
@@ -59,7 +59,7 @@
 
 #include <inttypes.h>
 
-#if __GNUC__ >= 3
+#if (__GNUC__ >= 3) || (__SUNPRO_C >= 0x5130)
 #define __deprecated __attribute__((deprecated))
 #else
 #define __deprecated